Skip to content

Commit

Permalink
Update package scripts to avoid non-zero exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Jul 17, 2023
1 parent 67d63ec commit b27a4c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@
"=============================================================================== components": "",
"make-one": "make() { components/bin/makeAll --no-subdirs $3 $4 --$2 components/$2/$1; }; make",
"_bundle:pkg": "pkg() { echo '{\n \"type\": \"commonjs\"\n}' > bundle$1/package.json; }; pkg",
"_bundle-build:pkg": "",
"_bundle--build:pkg": "",
"_pre_make": "pre() { npm run clean:dir bundle$2 && npm run clean:lib $1; }; pre",
"_make": "make() { components/bin/makeAll --$1 --terse $2 $3 components/$1; }; make",
"_make_": "m() { npm run -- _pre_make $1 $2 && npm run -- _make $1 $3 $4; npm run -- _bundle$4:pkg $2; }; m",
"_make_": "m() { npm run -- _pre_make $1 $2 && npm run -- _make $1 $3 $4 && npm run -- _bundle$4:pkg $2; }; m",
"make-cjs-components": "npm run -s -- _make_ cjs -cjs --bundle-cjs",
"make-mjs-components": "npm run -s -- _make_ mjs",
"make-components": "npm run -s make-mjs-components",
"=============================================================================== build": "",
"pre_build": "echo 'Compiling typescript files'",
"_build": "build() { npm run compile-$1; echo; npm run -- make-$1-components $2; }; build",
"_build": "build() { npm run compile-$1 && echo && npm run -- make-$1-components $2; }; build",
"_build_": "b() { echo '============='; echo Building $1:; echo '============='; npm run -- _build $1 $2; }; b",
"build-cjs": "npm run -s -- _build_ cjs --build",
"build-mjs": "npm run -s -- _build_ mjs",
Expand Down

0 comments on commit b27a4c8

Please sign in to comment.