Skip to content

Commit 1643853

Browse files
committed
feat(app): build app with tsc and then ncc
1 parent 633576d commit 1643853

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.DS_Store
22

3+
/lib
4+
35
node_modules

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"prepare": "npm run build",
2525
"prepublishOnly": "npm test && npm run lint",
2626
"preversion": "npm run lint",
27-
"build": "tsc",
27+
"build": "tsc && ./node_modules/.bin/ncc build lib/index.js --license licenses.txt",
2828
"release": "./node_modules/.bin/standard-version && git push --follow-tags",
2929
"test": "jest",
3030
"format": "prettier --write \"src/**/*.ts\"",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"allowSyntheticDefaultImports": true,
88
"strict": true,
99
"moduleResolution": "node",
10-
"outDir": "./dist",
10+
"outDir": "./lib"
1111
},
1212
"ts-node": {
1313
"files": true

0 commit comments

Comments
 (0)