Skip to content

Commit

Permalink
chore(naming.presets): add scripts for ts build
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed Aug 16, 2018
1 parent cb75817 commit a383639
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/naming.presets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,18 @@
"engines": {
"node": ">= 8.0"
},
"main": "index.js",
"typings": "index.d.ts",
"main": "lib/index.js",
"module": "es/index.js",
"typings": "typings/index.d.ts",
"files": [
"*.js",
"index.d.ts"
],
"scripts": {
"test": "nyc mocha"
"build:cjs": "tsc --module commonjs --outDir lib",
"build:es": "tsc --module es2015 --outDir es",
"build": "npm run clean && npm run build:cjs && npm run build:es",
"clean": "rm -rf lib es typings",
"test": "npm run build && nyc mocha"
}
}

0 comments on commit a383639

Please sign in to comment.