Skip to content

Commit d4b9df0

Browse files
committed
setup types bundler
1 parent 27cb118 commit d4b9df0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
"version": "0.0.1-alpha",
44
"description": "Compiler used to compile Syntax Script projects.",
55
"main": "dist/index.js",
6+
"types": "dist/types.d.ts",
67
"scripts": {
78
"lint": "eslint ./src/**/*.ts",
89
"prebuild": "npm run lint && node distDeletor.js",
9-
"build":"tsc",
10-
"postbuild":"cls && echo Builded"
10+
"build": "tsc",
11+
"postbuild": "cls && dts-bundle-generator src/index.ts -o dist/types.d.ts && echo Builded",
12+
"prepack": "npm run build"
1113
},
1214
"repository": {
1315
"type": "git",

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"moduleResolution": "nodenext",
77
"target": "ESNext",
88
"skipLibCheck": true,
9-
"allowUnreachableCode": false,
10-
"declaration": true
9+
"allowUnreachableCode": false
1110
},
1211
"exclude": ["./syx/**/*"],
1312
"include": ["./src"]

0 commit comments

Comments
 (0)