Skip to content

Commit

Permalink
feat(tools): lib update
Browse files Browse the repository at this point in the history
polish tsconfig
  • Loading branch information
xmlking committed May 10, 2019
1 parent bca7f73 commit 4bb35b3
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
10 changes: 5 additions & 5 deletions tools/package.json
Expand Up @@ -12,16 +12,16 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"copy": "cpx '**/*.{json,d.ts,md}' ../dist/tools",
"build": "tsc -p tsconfig.tools.json && yarn run copy"
"build": "tsc -p tsconfig.lib.json && yarn run copy"
},
"peerDependencies": {
"@nrwl/workspace": "*"
},
"devDependencies": {
"@angular-devkit/architect": ">=0.13.9",
"@angular-devkit/build-angular": ">=0.13.9",
"@angular-devkit/build-webpack": ">=0.13.9",
"@angular-devkit/core": ">=7.3.9",
"@angular-devkit/architect": "~0.800.0-rc.3",
"@angular-devkit/build-angular": "~0.800.0-rc.3",
"@angular-devkit/build-webpack": "~0.800.0-rc.3",
"@angular-devkit/core": "~8.0.0-rc.3",
"@types/json-schema": "^7.0.3",
"cpx": "^1.5.0"
}
Expand Down
9 changes: 9 additions & 0 deletions tools/tsconfig.json
@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"types": [
"jest",
"node"
]
}
}
13 changes: 13 additions & 0 deletions tools/tsconfig.lib.json
@@ -0,0 +1,13 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../dist/tools",
"rootDir": ".",
"module": "commonjs",
"moduleResolution": "node",
"target": "es6",
"types": ["jest", "node"]
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/_files/**/*", "**/*.spec.ts"]
}
4 changes: 2 additions & 2 deletions tools/tsconfig.spec.json
@@ -1,10 +1,10 @@
{
"extends": "../tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../dist/out-tsc/tools",
"module": "commonjs",
"types": ["jest", "node"]
},

"include": ["**/*.spec.ts", "**/*.d.ts"]
"include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
}

0 comments on commit 4bb35b3

Please sign in to comment.