Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
philipahlberg committed Aug 9, 2020
1 parent 51e1b28 commit b111d24
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 223 deletions.
22 changes: 10 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,23 @@
"dist"
],
"scripts": {
"build": "npm run build:js && npm run build:ts",
"build:js": "rollup -c rollup.config.js",
"build:ts": "tsc --emitDeclarationOnly",
"test": "windtunnel ./tests/index.mjs",
"bench": "npm run build:js && node -r esm benches/index.js"
"build": "rollup -c rollup.config.js",
"test": "windtunnel test ./tests/index.mjs",
"bench": "npm run build && node -r esm benches/index.js"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^8.4.0",
"@rollup/plugin-typescript": "^5.0.2",
"@types/benchmark": "^1.0.31",
"@types/node": "^12.12.11",
"@windtunnel/assert": "^0.1.0",
"@windtunnel/cli": "^0.1.0",
"@types/node": "^14.0.27",
"@windtunnel/assert": "^0.5.0",
"@windtunnel/cli": "^0.5.0",
"benchmark": "^2.1.4",
"esm": "^3.2.25",
"path-to-regexp": "^6.1.0",
"regexparam": "^1.3.0",
"rollup": "^1.27.4",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-typescript": "^1.0.1",
"tslib": "^1.10.0",
"rollup": "^2.23.1",
"tslib": "^2.0.1",
"typescript": "^3.7.2"
},
"dependencies": {}
Expand Down
29 changes: 13 additions & 16 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
import typescript from 'rollup-plugin-typescript';
import { terser } from "rollup-plugin-terser";
import module from 'module';
import resolve from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';

export default {
input: 'src/index.ts',
output: [
{
file: 'dist/index.min.js',
format: 'cjs',
},
{
file: 'dist/index.min.mjs',
format: 'es',
}
],
output: {
dir: 'dist',
format: 'esm',
entryFileNames: '[name].mjs',
},
plugins: [
typescript(),
terser({
toplevel: true
})
]
resolve({
preferBuiltins: true,
}),
],
external: module.builtinModules,
};
32 changes: 21 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
{
"compilerOptions": {
"target": "es2017",
"module": "esnext",
"lib": ["es2017"],
"declaration": true,
"outDir": "./dist",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true
}
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"target": "ES2020",
"module": "ES2020",
"moduleResolution": "node",
"lib": [
"ES2015",
"ES2016",
"ES2017",
"ES2018",
"ES2019",
"ES2020"
],
"declaration": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"importHelpers": true
}
}
Loading

0 comments on commit b111d24

Please sign in to comment.