Skip to content

Commit

Permalink
feat: add es target
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Jul 22, 2019
1 parent 419bf61 commit bf189cd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ service-worker.js
#**/*-*.png
#index.html
*.data
es
2 changes: 2 additions & 0 deletions clean-scripts.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ const jsFiles = `"*.config.js"`
module.exports = {
build: [
'rimraf packages/utils/dist/',
'rimraf packages/utils/es/',
'tsc -p packages/utils/src/',
'tsc -p packages/utils/src/tsconfig.es.json',
'rimraf packages/core/dist/',
'tsc -p packages/core/src/',
'rimraf packages/cli/dist/',
Expand Down
1 change: 1 addition & 0 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2.2.0-alpha.0",
"description": "Utils to develop library using typescript",
"main": "dist/index.js",
"module": "es/index.js",
"types": "dist/index.d.ts",
"repository": "https://github.com/plantain-00/type-coverage.git",
"author": "york yao <yaoao12306@outlook.com>",
Expand Down
11 changes: 11 additions & 0 deletions packages/utils/src/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../es",
"target": "es5",
"declaration": true
},
"files": [
"index.ts"
]
}

0 comments on commit bf189cd

Please sign in to comment.