Skip to content

Commit

Permalink
sed that works with mac and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
sakari committed Nov 8, 2024
1 parent 1746827 commit f80f026
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/oats-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"clean:dist": "rm -rf ./dist",
"prebuild": "yarn clean && yarn tsc --project tsconfig.test.json --noEmit",
"build": "yarn tsc",
"postbuild": "sed -i bak 1d dist/make.d.ts && rm dist/make.d.tsbak",
"postbuild": "yarn remove-references",
"remove-references": "cat dist/make.d.ts > dist/make.d.tsbak && sed 's/\\/\\/\\/.*//g' > dist/make.d.ts < dist/make.d.tsbak && rm dist/make.d.tsbak",
"lint": "eslint --max-warnings=0 --ext .ts src test",
"lint:fix": "eslint --max-warnings=0 --ext .ts src test --fix"
},
Expand Down

0 comments on commit f80f026

Please sign in to comment.