Skip to content

Commit

Permalink
1.6.5 - fix node targets (#245)
Browse files Browse the repository at this point in the history
* No need for node next, best of both worlds

* use condensed rollup

* 1.6.5
  • Loading branch information
alxjrvs authored Aug 26, 2022
1 parent 96a2507 commit 8753c8d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 41 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "randsum",
"version": "1.6.4",
"version": "1.6.5",
"private": false,
"author": "Alex Jarvis",
"description": "rand for the rest of us",
Expand Down
60 changes: 22 additions & 38 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@ const banner = `
* Released under the ${pkg.license} license.
*/
`
const plugins = [
pluginTypescript({
tsconfig: './tsconfig.build.json'
}),
pluginCommonjs({
extensions: ['.js', '.ts']
}),
babel({
babelHelpers: 'bundled',
configFile: path.resolve(__dirname, '.babelrc.js')
})
]

const external = [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.devDependencies || {})
]

export default [
{
Expand All @@ -39,16 +56,7 @@ export default [
}
],
plugins: [
pluginTypescript({
tsconfig: './tsconfig.build.json'
}),
pluginCommonjs({
extensions: ['.js', '.ts']
}),
babel({
babelHelpers: 'bundled',
configFile: path.resolve(__dirname, '.babelrc.js')
}),
...plugins,
pluginNodeResolve({
browser: true
})
Expand All @@ -67,21 +75,9 @@ export default [
exports: 'named'
}
],
external: [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.devDependencies || {})
],
external,
plugins: [
pluginTypescript({
tsconfig: './tsconfig.build.json'
}),
pluginCommonjs({
extensions: ['.js', '.ts']
}),
babel({
babelHelpers: 'bundled',
configFile: path.resolve(__dirname, '.babelrc.js')
}),
...plugins,
pluginNodeResolve({
browser: false
})
Expand All @@ -100,21 +96,9 @@ export default [
exports: 'default'
}
],
external: [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.devDependencies || {})
],
external,
plugins: [
pluginTypescript({
tsconfig: './tsconfig.build.json'
}),
pluginCommonjs({
extensions: ['.js', '.ts']
}),
babel({
babelHelpers: 'bundled',
configFile: path.resolve(__dirname, '.babelrc.js')
}),
...plugins,
pluginNodeResolve({
browser: false
})
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"module": "es6",
"target": "es2018",
"module": "esnext",
"moduleResolution": "node",
"sourceMap": true,
"declaration": true,
Expand Down

0 comments on commit 8753c8d

Please sign in to comment.