Skip to content

Commit

Permalink
feat(types): types for packages (#578)
Browse files Browse the repository at this point in the history
refers #577
  • Loading branch information
rishabh3112 authored and ematipico committed Sep 21, 2018
1 parent 936e7c1 commit b8d544b
Show file tree
Hide file tree
Showing 23 changed files with 74 additions and 56 deletions.
6 changes: 3 additions & 3 deletions packages/add/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
6 changes: 3 additions & 3 deletions packages/generate-loader/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
6 changes: 3 additions & 3 deletions packages/generate-plugin/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
6 changes: 3 additions & 3 deletions packages/generators/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
6 changes: 3 additions & 3 deletions packages/info/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
6 changes: 3 additions & 3 deletions packages/init/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
1 change: 1 addition & 0 deletions packages/make/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"description": "Makefile for webpack",
"main": "index.js",
"types": "index.d.ts",
"keywords": [],
"author": "",
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/make/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
1 change: 1 addition & 0 deletions packages/migrate/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"description": "Migrate command for webpack-cli",
"main": "index.js",
"types": "index.d.ts",
"author": "",
"license": "MIT",
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/migrate/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
1 change: 1 addition & 0 deletions packages/remove/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"description": "Scaffold for removing elements from configurations",
"main": "index.js",
"types": "index.d.ts",
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/remove/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
1 change: 1 addition & 0 deletions packages/serve/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"description": "",
"main": "index.js",
"types": "index.d.ts",
"keywords": [],
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/serve/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
1 change: 1 addition & 0 deletions packages/update/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"description": "",
"main": "index.js",
"types": "index.d.ts",
"keywords": [],
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/update/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
1 change: 1 addition & 0 deletions packages/utils/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"description": "webpack-cli utility files",
"main": "index.js",
"types": "index.d.ts",
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/utils/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
1 change: 1 addition & 0 deletions packages/webpack-scaffold/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"description": "Utility files for webpack-scaffold",
"main": "index.js",
"types": "index.d.ts",
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/webpack-scaffold/tsconfig.json
@@ -1,3 +1,3 @@
{
"extends": "../../tsconfig.json"
}
{
"extends": "../../tsconfig.packages.json"
}
16 changes: 16 additions & 0 deletions tsconfig.base.json
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"skipLibCheck": true
},
"include": [
"packages/**/*.ts"
],
"exclude": [
"node_modules/**",
"packages/*/node_modules/**"
]
}
23 changes: 6 additions & 17 deletions tsconfig.json
@@ -1,17 +1,6 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"allowJs": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true
},
"include": [
"packages/**/*.ts"
],
"exclude": [
"node_modules/**",
"packages/*/node_modules/**"
]
}
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"allowJs": true
}
}
6 changes: 6 additions & 0 deletions tsconfig.packages.json
@@ -0,0 +1,6 @@
{
"extends": "tsconfig.base.json",
"compilerOptions": {
"declaration": true
}
}

0 comments on commit b8d544b

Please sign in to comment.