-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dependencies): update dependencies (#31)
- Loading branch information
1 parent
c7a1bbd
commit ec46d3b
Showing
10 changed files
with
12,676 additions
and
8,554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"hooks": { | ||
"pre-commit": "npm run lint", | ||
"commit-msg": "npm run commitmsg", | ||
"pre-push": "npm run test" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
12.14.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
collectCoverage: true, | ||
testEnvironment: 'node', | ||
testPathIgnorePatterns: [ | ||
'<rootDir>/build/', | ||
'<rootDir>/node_modules/', | ||
], | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,69 @@ | ||
import babel from 'rollup-plugin-babel'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
import localResolve from 'rollup-plugin-local-resolve'; | ||
import filesize from 'rollup-plugin-filesize'; | ||
import minify from 'rollup-plugin-babel-minify'; | ||
import json from 'rollup-plugin-json'; | ||
import globals from 'rollup-plugin-node-globals'; | ||
import builtins from 'rollup-plugin-node-builtins'; | ||
import { terser } from 'rollup-plugin-terser'; | ||
|
||
const config = { | ||
input: 'src/index.js', | ||
output: [ | ||
{ | ||
file: 'build/index.js', | ||
format: 'umd', | ||
name: 'npms-client', | ||
globals: [ | ||
'axios', | ||
], | ||
}, | ||
{ | ||
file: 'build/index.cjs.js', | ||
format: 'cjs', | ||
name: 'npms-client', | ||
globals: [ | ||
'axios', | ||
], | ||
}, | ||
{ | ||
file: 'build/index.esm.js', | ||
format: 'es', | ||
globals: [ | ||
'axios', | ||
], | ||
}, | ||
], | ||
external: [ | ||
'axios', | ||
], | ||
plugins: [ | ||
globals(), | ||
builtins(), | ||
babel({ exclude: 'node_modules/**' }), | ||
localResolve(), | ||
json(), | ||
resolve({ | ||
module: true, | ||
jsnext: true, | ||
main: true, | ||
preferBuiltins: true, | ||
browser: true, | ||
modulesOnly: true, | ||
}), | ||
commonjs(), | ||
minify(), | ||
terser(), | ||
filesize(), | ||
], | ||
import pkg from './package.json'; | ||
|
||
const INPUT_FILE_PATH = 'src/index.js'; | ||
|
||
const GLOBALS = { | ||
axios: 'axios', | ||
}; | ||
|
||
const EXTERNAL = ['axios']; | ||
|
||
|
||
const PLUGINS = [ | ||
globals(), | ||
builtins(), | ||
babel({ exclude: 'node_modules/**' }), | ||
localResolve(), | ||
json(), | ||
resolve({ | ||
module: true, | ||
jsnext: true, | ||
main: true, | ||
preferBuiltins: true, | ||
browser: true, | ||
modulesOnly: true, | ||
}), | ||
commonjs(), | ||
terser(), | ||
filesize(), | ||
]; | ||
|
||
|
||
const OUTPUT_DATA = [ | ||
{ | ||
file: pkg.browser, | ||
format: 'umd', | ||
}, | ||
{ | ||
file: pkg.main, | ||
format: 'cjs', | ||
}, | ||
{ | ||
file: pkg.module, | ||
format: 'es', | ||
}, | ||
]; | ||
|
||
const config = OUTPUT_DATA.map(({ file, format }) => ({ | ||
input: INPUT_FILE_PATH, | ||
output: { | ||
file, | ||
format, | ||
name: pkg.name, | ||
globals: GLOBALS, | ||
}, | ||
external: EXTERNAL, | ||
plugins: PLUGINS, | ||
})); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters