Skip to content

Commit

Permalink
chore!: drop node 10
Browse files Browse the repository at this point in the history
  • Loading branch information
foray1010 committed Apr 30, 2021
1 parent 4e60c92 commit f676176
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: 'circleci/node:10'
- image: 'circleci/node:12.13.0'
steps:
- 'checkout'
- restore_cache:
Expand Down
6 changes: 3 additions & 3 deletions .size-limit.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[
{
"path": "dist/index.cjs.js",
"path": "dist/index.cjs",
"limit": "2190 B"
},
{
"path": "dist/index.esm.js",
"limit": "2149 B"
"path": "dist/index.mjs",
"limit": "2136 B"
},
{
"path": "dist/index.umd.js",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
"sideEffects": false,
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs.js"
"require": "./dist/index.cjs"
},
"main": "./dist/index.cjs.js",
"main": "./dist/index.cjs",
"unpkg": "./dist/index.umd.js",
"module": "./dist/index.esm.js",
"module": "./dist/index.mjs",
"typings": "./dist/index.d.ts",
"files": [
"dist"
Expand Down Expand Up @@ -101,6 +101,6 @@
"typescript": "4.2.4"
},
"engines": {
"node": ">=10.13"
"node": ">=12.13"
}
}
10 changes: 1 addition & 9 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,13 @@ const rollupOptions: RollupOptions[] = [
output: [
{
dir: outputDir,
entryFileNames: '[name].[format].js',
entryFileNames: '[name].cjs',
exports: 'named',
format: 'cjs',
plugins: [getBabelOutputPlugin()],
preferConst: true,
sourcemap: true,
},
{
dir: outputDir,
entryFileNames: '[name].esm.js',
exports: 'named',
format: 'esm',
plugins: [getBabelOutputPlugin()],
sourcemap: true,
},
{
dir: outputDir,
entryFileNames: '[name].mjs',
Expand Down

0 comments on commit f676176

Please sign in to comment.