Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
majh committed Feb 7, 2023
1 parent ebd774f commit 4d35490
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -eu

yarn build-all
yarn build
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
".": {
"import": "./dist/main.es.js",
"require": "./dist/cli.js"
},
"./src/*": {
"import": "./src/*"
}
},
"files": [
Expand All @@ -21,10 +24,10 @@
"esbuild-main:dev": "esbuild src/main.ts --platform=browser --global-name=shirtinyLogger --bundle --sourcemap=external --outfile=dist/main.dev.js",
"test": "jest",
"lint": "eslint --max-warnings 0 . --ext .ts",
"build": "tsc -p tsconfig.json",
"build-type": "tsc -p tsconfig.json",
"clean": "shx rm -rf dist build",
"ts-node": "ts-node",
"build-all": "npm run clean && npm run build && npm run esbuild-node && npm run esbuild-browser && npm run esbuild-esm",
"build": "npm run clean && npm run build-type && npm run esbuild-node && npm run esbuild-browser && npm run esbuild-esm",
"esbuild-browser": "esbuild src/browser.ts --platform=browser --global-name=ShirtinyLogger --bundle --minify --outfile=dist/main.browser.js",
"esbuild-browser:dev": "esbuild src/browser.ts --platform=browser --global-name=ShirtinyLogger --bundle --sourcemap=external --outfile=dist/main.browser.js",
"esbuild-node": "esbuild src/cli.ts --bundle --platform=node --minify --outfile=dist/cli.js",
Expand Down

0 comments on commit 4d35490

Please sign in to comment.