Skip to content

Commit

Permalink
feat: symlink dist/package.json -> package.json when running serve
Browse files Browse the repository at this point in the history
  • Loading branch information
lguychard committed Jan 3, 2019
1 parent 6c1af45 commit 90e96c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ async function main(): Promise<void> {
tslint: "tslint -p tsconfig.json './src/**/*.ts'",
typecheck: 'tsc -p tsconfig.json',
build: `parcel build --out-file dist/${name}.js src/${name}.ts`,
serve: `parcel serve --no-hmr --out-file dist/${name}.js src/${name}.ts`,
symlinkPackage: '[ ! -f dist/package.json ] && (mkdir -p dist && pushd dist && ln -s ../package.json package.json && popd) || echo "dist/package.json already symlinked"',
serve: `npm run symlinkPackage && parcel serve --no-hmr --out-file dist/${name}.js src/${name}.ts`,
'watch:typecheck': 'tsc -p tsconfig.json -w',
'watch:build': 'tsc -p tsconfig.dist.json -w',
'sourcegraph:prepublish': 'npm run build',
Expand Down

0 comments on commit 90e96c7

Please sign in to comment.