File tree Expand file tree Collapse file tree 4 files changed +76
-31
lines changed Expand file tree Collapse file tree 4 files changed +76
-31
lines changed Original file line number Diff line number Diff line change 4545 "node" : " >=16"
4646 },
4747 "scripts" : {
48- "postinstall" : " test -d src && npm run build || npm run chmod" ,
48+ "postinstall" : " shx test -d src && npm run build || npm run chmod" ,
4949 "prepublishOnly" : " npm run build" ,
50- "build" : " npx babel src -d build && npx tsc && cp -r src/script build && cp ../../LICENSE.md ../../README.md ." ,
50+ "build" : " npx babel src -d build && npx tsc && shx cp -r src/script build && shx cp ../../LICENSE.md ../../README.md ." ,
5151 "postbuild" : " npm run chmod" ,
5252 "test" : " node --test" ,
53- "chmod" : " find ./src/script ./build/script -type f -exec chmod 755 {} + || exit 0" ,
53+ "chmod" : " shx chmod 755 ./src/script/**/* ./build/script/**/* || exit 0" ,
5454 "dev" : " node src/cli.js" ,
5555 "start" : " node build/cli.js"
5656 },
5757 "dependencies" : {
58- "clang-format-node" : " ^1.3.0"
58+ "clang-format-node" : " ^1.3.0" ,
59+ "shx" : " ^0.3.4"
5960 }
6061}
Original file line number Diff line number Diff line change 4444 "node" : " >=16"
4545 },
4646 "scripts" : {
47- "postinstall" : " test -d src && npm run build || npm run chmod" ,
47+ "postinstall" : " shx test -d src && npm run build || npm run chmod" ,
4848 "prepublishOnly" : " npm run build" ,
49- "build" : " npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE.md ../../README.md ." ,
49+ "build" : " npx babel src -d build && npx tsc && shx cp -r src/bin build && shx cp ../../LICENSE.md ../../README.md ." ,
5050 "postbuild" : " npm run chmod" ,
5151 "test" : " node --test" ,
52- "chmod" : " find ./src/bin ./build/bin -type f -exec chmod 755 {} + || exit 0" ,
52+ "chmod" : " shx chmod 755 ./src/bin/**/* ./build/bin/**/* || exit 0" ,
5353 "dev" : " node src/cli.js" ,
5454 "start" : " node build/cli.js"
5555 },
5656 "dependencies" : {
57- "clang-format-node" : " ^1.3.0"
57+ "clang-format-node" : " ^1.3.0" ,
58+ "shx" : " ^0.3.4"
5859 }
5960}
Original file line number Diff line number Diff line change 4343 "node" : " >=16"
4444 },
4545 "scripts" : {
46- "postinstall" : " test -d src && npm run build || npm run chmod" ,
46+ "postinstall" : " shx test -d src && npm run build || npm run chmod" ,
4747 "prepublishOnly" : " npm run build" ,
48- "build" : " npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE.md ../../README.md ." ,
48+ "build" : " npx babel src -d build && npx tsc && shx cp -r src/bin build && shx cp ../../LICENSE.md ../../README.md ." ,
4949 "postbuild" : " npm run chmod" ,
5050 "test" : " node --test" ,
51- "chmod" : " find ./src/bin ./build/bin -type f -exec chmod 755 {} + || exit 0" ,
51+ "chmod" : " shx chmod 755 ./src/bin/**/* ./build/bin/**/* || exit 0" ,
5252 "dev" : " node src/cli.js" ,
5353 "start" : " node build/cli.js"
54+ },
55+ "dependencies" : {
56+ "shx" : " ^0.3.4"
5457 }
5558}
You can’t perform that action at this time.
0 commit comments