Skip to content

Commit

Permalink
Build improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyanziano committed Feb 13, 2020
1 parent 4c34232 commit 91bf6a5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/app/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "built/index.js",
"types": "built/index.d.ts",
"scripts": {
"build": "npm run clean && npm run build:prod && tsc --emitDeclarationOnly --declaration",
"build": "npm run clean && npm run build:prod && tsc",
"build:prod": "babel ./src --out-dir built --extensions \".ts,.tsx\" --ignore \"**/*.spec.ts\"",
"clean": "rimraf ./built",
"lint": "eslint --color --quiet --ext .js,.jsx,.ts,.tsx ./src",
Expand Down
6 changes: 4 additions & 2 deletions packages/app/shared/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"outDir": "build/dist",
"declarationDir": "built"
"declaration": true,
"declarationDir": "built",
"declarationMap": true,
"emitDeclarationOnly": true,
},
"include": ["./src"]
}
2 changes: 1 addition & 1 deletion packages/sdk/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "npm run clean && tsc --emitDeclarationOnly --declaration && npm run build:prod",
"build": "npm run clean && tsc && npm run build:prod",
"build:prod": "babel ./src --out-dir build --extensions \".ts,.tsx\" --ignore \"**/*.spec.ts\"",
"clean": "rimraf ./built",
"lint": "eslint --color --quiet --ext .js,.jsx,.ts,.tsx ./src",
Expand Down
10 changes: 7 additions & 3 deletions packages/sdk/shared/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"outDir": "build",
"lib": ["dom", "es2015.proxy", "es5", "esnext", "es7"],
"declaration": true,
"declarationDir": "build",
"declarationMap": true,
"emitDeclarationOnly": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "esnext"
"lib": ["dom", "es2015.proxy", "es5", "esnext", "es7"],
"outDir": "build",
"target": "esnext",
},
"include": [
"./src"
Expand Down

0 comments on commit 91bf6a5

Please sign in to comment.