Skip to content

Commit 0876c9f

Browse files
committed
chore(naming.presets): add scripts for ts build
1 parent a27be7e commit 0876c9f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/naming.presets/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,18 @@
3232
"engines": {
3333
"node": ">= 4.0"
3434
},
35-
"main": "index.js",
36-
"typings": "index.d.ts",
35+
"main": "lib/index.js",
36+
"module": "es/index.js",
37+
"typings": "typings/index.d.ts",
3738
"files": [
3839
"*.js",
3940
"index.d.ts"
4041
],
4142
"scripts": {
43+
"build:cjs": "tsc --module commonjs --outDir lib",
44+
"build:es": "tsc --module es2015 --outDir es",
45+
"build:typings": "tsc --declaration --declarationDir typings",
46+
"build": "npm run build:cjs && npm run build:es && npm run build:typings",
4247
"test": "nyc mocha"
4348
}
4449
}

0 commit comments

Comments
 (0)