Skip to content

Commit

Permalink
build(arcgis-rest-common-types): simplified build
Browse files Browse the repository at this point in the history
* Activated *emitDeclarationOnly* compiler option, which eliminates the need for the
subsequent step for deleting compiled (empty) JavaScript files.
  • Loading branch information
JeffJacobson committed May 14, 2018
1 parent fbc4f3c commit 11ae59c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/arcgis-rest-common-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:esm",
"build:esm": "tsc --module es2015 --outDir ./dist/esm --sourceMap --declaration --declarationDir ./dist/types",
"postbuild": "rimraf dist/esm"
"build:esm": "tsc"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 5 additions & 1 deletion packages/arcgis-rest-common-types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationDir": "./dist/types",
"emitDeclarationOnly": true
},
"include": [
"src/**/*.ts"
]
Expand Down

0 comments on commit 11ae59c

Please sign in to comment.