Skip to content

Commit 77706e0

Browse files
author
Sepand Parhami
committed
Make build work on MacOS / BSD.
1 parent a5d50e4 commit 77706e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"build-watch": "npm run build -- --watch",
1616
"clean": "rm -rf dist/ build/",
1717
"compile": "mkdir -p dist && node_modules/google-closure-compiler/cli.js -O ADVANCED --js='compile/index.js' --js='build/**.js' --js='!build/**/test-*.js' --js='!build/src/testing/**' --externs='compile/externs.js' --rewrite_polyfills=false > build/closure-output.js",
18-
"create-mjs": "cp build/closure-output.js dist/animations.mjs && sed -i 's;window.\\([^=]*=\\);export const \\1;g' dist/animations.mjs",
19-
"create-cjs": "cp build/closure-output.js dist/animations.js && sed -i 's;window.\\([^=]*=\\);exports.\\1;g' dist/animations.js",
18+
"create-mjs": "cp build/closure-output.js dist/animations.mjs && sed -i '' 's;window.\\([^=]*=\\);export const \\1;g' dist/animations.mjs",
19+
"create-cjs": "cp build/closure-output.js dist/animations.js && sed -i '' 's;window.\\([^=]*=\\);exports.\\1;g' dist/animations.js",
2020
"create-global": "npm run tsickle && npm run compile",
2121
"demo": "npm run build && http-server | grep -m 1 'http:\\.*' | xargs -I{} opener {}/docs/demo",
2222
"dist": "npm run clean && npm run create-global && npm run create-mjs && npm run create-cjs && npm run build",

0 commit comments

Comments
 (0)