Skip to content

Commit

Permalink
chore(npm): Implement 'dist:watch' to streamline development
Browse files Browse the repository at this point in the history
  • Loading branch information
ribose-jeffreylau committed Aug 24, 2023
1 parent a1669de commit ca55267
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@
"diagnose": "tsc --diagnostics",
"typecheck": "tsc -p tsconfig.build.json --noEmit",
"build:decl": "tsc -p tsconfig.build.json --emitDeclarationOnly",
"tsc": "tsc -p tsconfig.build.json && cp package.json ${npm_package_dist_dir}/",
"build": "swc ${npm_package_src_dir} --sync --ignore '*.test.*' --out-dir ${npm_package_dist_dir} --copy-files --extensions '.ts,.tsx,.js,.jsx,.json' && cp package.json ${npm_package_dist_dir}/",
"build:decl:watch": "pnpm run build:decl --watch",
"tsc": "tsc -p tsconfig.build.json",
"posttsc": "pnpm run postbuild",
"build": "swc ${npm_package_src_dir} --sync --ignore '*.test.*' --out-dir ${npm_package_dist_dir} --copy-files --extensions '.ts,.tsx,.js,.jsx,.json'",
"postbuild": "cp package.json ${npm_package_dist_dir}/",
"build:watch": "pnpm run build --watch",
"postbuild:watch": "pnpm run postbuild",
"inject": "mkdirp $HOME/'Library/Application Support'/Paneron/plugins/${npm_package_name}; rsync -a ${npm_package_dist_dir}/ $HOME/'Library/Application Support'/Paneron/plugins/${npm_package_name}/",
"dist": "concurrently npm:build npm:build:decl",
"dist:watch": "concurrently npm:build:watch npm:build:decl:watch",
"build-inject": "pnpm run build && pnpm run inject",
"build-typecheck": "concurrently npm:build npm:typecheck",
"clean-build": "pnpm run clean; pnpm run build",
Expand Down
26 changes: 25 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca55267

Please sign in to comment.