Skip to content

Commit

Permalink
Switch back to official typescript plugin (#2465)
Browse files Browse the repository at this point in the history
* Switch back to rollup-plugin-typescript

* Update dependencies

* Manually check typings by running the TypeScript compiler
  • Loading branch information
lukastaegert committed Sep 19, 2018
1 parent 521dc4d commit 4678513
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 84 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -13,4 +13,3 @@ test/hooks/tmp
test/tmp
test/typescript/typings
perf/
.rpt2_cache/
102 changes: 36 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions package.json
Expand Up @@ -35,7 +35,7 @@
"test:leak": "npm i --silent --no-save weak@1 && node --expose-gc test/leak/index.js",
"test:only": "mocha",
"test:quick": "mocha -b",
"test:typescript": "tsc -p test/typescript",
"test:typescript": "tsc --noEmit -p test/typescript && tsc --noEmit",
"watch": "rollup -cw"
},
"repository": "rollup/rollup",
Expand Down Expand Up @@ -84,31 +84,32 @@
"istanbul": "^0.4.3",
"lint-staged": "^7.2.2",
"locate-character": "^2.0.5",
"magic-string": "^0.25.0",
"magic-string": "^0.25.1",
"minimist": "^1.2.0",
"mocha": "^5.2.0",
"prettier": "^1.14.2",
"pretty-bytes": "^5.1.0",
"pretty-ms": "^3.2.0",
"pretty-ms": "^4.0.0",
"remap-istanbul": "^0.12.0",
"require-relative": "^0.8.7",
"rollup": "^0.65.2",
"rollup": "^0.66.0",
"rollup-plugin-buble": "^0.19.2",
"rollup-plugin-commonjs": "^9.1.6",
"rollup-plugin-commonjs": "^9.1.8",
"rollup-plugin-json": "^3.1.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-string": "^2.0.2",
"rollup-plugin-terser": "^2.0.2",
"rollup-plugin-typescript2": "^0.17.0",
"rollup-pluginutils": "^2.3.1",
"rollup-plugin-typescript": "^1.0.0",
"rollup-pluginutils": "^2.3.3",
"sander": "^0.6.0",
"shx": "^0.3.2",
"signal-exit": "^3.0.2",
"source-map": "^0.6.1",
"source-map-support": "^0.5.9",
"sourcemap-codec": "^1.4.1",
"terser": "^3.8.2",
"tslib": "^1.9.3",
"tslint": "^5.11.0",
"turbocolor": "^2.6.1",
"typescript": "^3.0.3",
Expand Down
14 changes: 4 additions & 10 deletions rollup.config.js
Expand Up @@ -5,7 +5,7 @@ import json from 'rollup-plugin-json';
import resolve from 'rollup-plugin-node-resolve';
import string from 'rollup-plugin-string';
import { terser } from 'rollup-plugin-terser';
import typescript from 'rollup-plugin-typescript2';
import typescript from 'rollup-plugin-typescript';
import pkg from './package.json';

const commitHash = (function() {
Expand Down Expand Up @@ -75,9 +75,7 @@ export default command => {
json(),
resolveTypescript(),
resolve(),
typescript({
typescript: require('typescript')
}),
typescript(),
commonjs()
],
external: ['fs', 'path', 'events', 'module', 'util', 'crypto'],
Expand All @@ -95,9 +93,7 @@ export default command => {
json(),
resolveTypescript(),
resolve(),
typescript({
typescript: require('typescript')
}),
typescript(),
commonjs({
include: 'node_modules/**'
})
Expand Down Expand Up @@ -133,9 +129,7 @@ export default command => {
},
resolveTypescript(),
resolve({ browser: true }),
typescript({
typescript: require('typescript')
}),
typescript(),
commonjs(),
terser({ module: true, output: { comments: 'some' } })
],
Expand Down

0 comments on commit 4678513

Please sign in to comment.