Skip to content

Commit 919af79

Browse files
bigoponjdanyow
authored andcommitted
refactor(build -- dts): merge all dts into 1 file
#508
1 parent b998302 commit 919af79

File tree

4 files changed

+190
-7
lines changed

4 files changed

+190
-7
lines changed

package-lock.json

Lines changed: 183 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"develop": "concurrently \"./node_modules/.bin/tsc --watch\" \"./node_modules/.bin/karma start\"",
2828
"prebuild": "cross-env rimraf dist",
2929
"build": "rollup -c --environment NODE_ENV:production",
30+
"postbuild": "npm run build:dts",
31+
"build:dts": "dts-bundle-generator -o dist/aurelia-validation.d.ts src/aurelia-validation.ts",
3032
"predoc": "cross-env rimraf doc/api.json && rimraf dist/doc-temp && tsc --project tsconfig.build.json --outFile dist/doc-temp/aurelia-validation.js && node doc/shape-defs && copyfiles tsconfig.json dist/doc-temp",
3133
"doc": "cross-env typedoc --json doc/api.json --excludeExternals --includeDeclarations --mode modules --target ES6 --name aurelia-validation-docs dist/doc-temp/",
3234
"postdoc": "cross-env node doc/shape-doc && rimraf dist/doc-temp",
@@ -70,6 +72,7 @@
7072
"aurelia-templating": "^1.9.0"
7173
},
7274
"devDependencies": {
75+
"@types/jsdom": "^12.2.0",
7376
"@types/node": "^8.5.1",
7477
"aurelia-bootstrapper": "^2.3.0",
7578
"aurelia-pal-browser": "^1.8.0",
@@ -80,6 +83,7 @@
8083
"conventional-changelog-cli": "^2.0.5",
8184
"copyfiles": "^2.1.0",
8285
"cross-env": "^5.2.0",
86+
"dts-bundle-generator": "^1.6.1",
8387
"jasmine-core": "^3.2.1",
8488
"karma": "^3.0.0",
8589
"karma-chrome-launcher": "^2.2.0",

rollup.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export default [{
2424
compilerOptions: {
2525
module: 'es2015',
2626
target: 'es2015',
27-
declarationDir: 'dist/types'
2827
},
2928
include: ['src'],
3029
exclude: undefined
@@ -48,8 +47,7 @@ export default [{
4847
tsconfigOverride: {
4948
compilerOptions: {
5049
module: 'es2015',
51-
target: 'es2017',
52-
declaration: false
50+
target: 'es2017'
5351
},
5452
include: ['src'],
5553
exclude: undefined
@@ -72,8 +70,7 @@ export default [{
7270
// tsconfig: undefined,
7371
tsconfigOverride: {
7472
compilerOptions: {
75-
module: 'es2015',
76-
declaration: false
73+
module: 'es2015'
7774
},
7875
include: ['src'],
7976
exclude: undefined

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"noUnusedParameters": true,
1414
"noImplicitReturns": true,
1515
"strictNullChecks": true,
16-
"declaration": true,
16+
"declaration": false,
1717
"forceConsistentCasingInFileNames": true,
1818
"experimentalDecorators": true,
1919
"noEmitHelpers": false,

0 commit comments

Comments
 (0)