Skip to content

Commit d3ca53c

Browse files
fix: npm build script now outputs executable
1 parent a6a830c commit d3ca53c

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

fuse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ Sparky.task('test', () => {
4242
})
4343

4444
Sparky.task('default', () => {
45+
bundle.instructions('> [src/index.ts]')
4546
!isProdBuild &&
4647
bundle.watch(`src/**`).completed(fp => shabang(fp.bundle, absOutputPath))
47-
bundle.instructions('> [src/index.ts]')
4848

4949
fuseConfig.run().then(bp => {
5050
const bundle = bp.bundles.get(appName)

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"lint": "tslint --project tsconfig.json",
2929
"test": "ts-node fuse test",
3030
"test.watch": "chokidar '(src|spec)/**/*.ts' -c 'ts-node fuse test' --initial --silent",
31-
"build": "ts-node fuse --build",
32-
"prepare": "ts-node fuse --build",
33-
"precommit": "npm run test && npm run lint && pretty-quick --no-semi --single-quote",
31+
"build": "ts-node fuse default --build",
32+
"prepublishOnly": "ts-node fuse default --build",
33+
"precommit": "npm run test && npm run lint && pretty-quick --staged --no-semi --single-quote",
3434
"start": "ts-node fuse",
3535
"start.dev": "ts-node fuse & npm run test.watch"
3636
},

tools/manual-typings/json.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare module "*.json" {
2-
const value: any;
1+
declare module '*.json' {
2+
const value: any
33
export = value
4-
}
4+
}

tools/manual-typings/txt.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare module "*.txt" {
2-
const value: string;
1+
declare module '*.txt' {
2+
const value: string
33
export = value
4-
}
4+
}

0 commit comments

Comments
 (0)