Skip to content

Commit

Permalink
support(build): Put typings in typings/
Browse files Browse the repository at this point in the history
Since now there is have more than one generated then the build produces
more than one `.d.ts` file. Before this commit `index.d.ts` would be put
in the root but with more than one file that is not good. So `.d.ts`
files now are placed on `typings/`.
  • Loading branch information
gillchristian committed Apr 23, 2019
1 parent 0049117 commit ee81b86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,4 +1,4 @@
node_modules/
dist/
coverage/
index.d.ts
typings/
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -6,7 +6,7 @@
"module": "./dist/cmjs/index.js",
"es2015": "./dist/es2015/index.js",
"unpkg": "./dist/umd/index.js",
"typings": "./index.d.ts",
"typings": "./typings/index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
Expand All @@ -15,7 +15,7 @@
"author": "Christian Gill <gillchristiang@gmail.com>",
"license": "MIT",
"scripts": {
"build": "yarn build:es2015 && yarn build:umd && yarn build:cmjs",
"build": "yarn build:umd && yarn build:cmjs && yarn build:es2015 ",
"build:es2015": "tsc --module es2015 --outDir dist/es2015",
"build:umd": "tsc --module umd --outDir dist/umd",
"build:cmjs": "tsc --module commonjs --outDir dist/cmjs",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Expand Up @@ -4,7 +4,7 @@
"moduleResolution": "node",
"esModuleInterop": true,
"declaration": true,
"declarationDir": "./",
"declarationDir": "typings",
"rootDir": "src",
"allowJs": false,
"skipLibCheck": true,
Expand All @@ -18,5 +18,5 @@
"noUnusedLocals": false
},
"include": ["src/*.ts", "!src/*.spec.ts"],
"exclude": ["node_modules", "dist", "index.d.ts", "src/index.spec.ts"]
"exclude": ["node_modules", "dist", "typings", "src/index.spec.ts"]
}

0 comments on commit ee81b86

Please sign in to comment.