Skip to content

Commit 245136f

Browse files
fix: force LF line endings for scripts to avoid docker problems on Windows (#974)
* fix: use correct line endings for windows * chore: add changeset
1 parent d168005 commit 245136f

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.changeset/thin-waves-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@eth-optimism/contracts': patch
3+
---
4+
5+
Minor change to how deploy.ts is invoked

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sh text eol=lf

packages/contracts/bin/deploy.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env ts-node-script
2-
31
import { Wallet } from 'ethers'
42
import path from 'path'
53
import dirtree from 'directory-tree'

packages/contracts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
"lint:check": "yarn run lint:typescript",
3939
"lint:typescript": "tslint --format stylish --project .",
4040
"clean": "rm -rf ./dist ./artifacts ./artifacts-ovm ./cache ./cache-ovm ./tsconfig.build.tsbuildinfo",
41-
"deploy": "./bin/deploy.ts && yarn generate-markdown",
41+
"deploy": "ts-node \"./bin/deploy.ts\" && yarn generate-markdown",
4242
"serve": "./bin/serve_dump.sh",
4343
"prepublishOnly": "yarn copyfiles -u 2 \"contracts/optimistic-ethereum/**/*\" ./",
4444
"postpublish": "rimraf OVM iOVM libraries mockOVM",
4545
"prepack": "yarn prepublishOnly",
4646
"postpack": "yarn postpublish",
47-
"generate-markdown": "node scripts/generate-markdown.js"
47+
"generate-markdown": "node \"./scripts/generate-markdown.js\""
4848
},
4949
"dependencies": {
5050
"@eth-optimism/core-utils": "^0.4.4",

0 commit comments

Comments
 (0)