Skip to content

Commit

Permalink
build: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani committed Dec 18, 2020
1 parent ce93ee9 commit 8cca7bd
Show file tree
Hide file tree
Showing 3 changed files with 3,235 additions and 1,779 deletions.
55 changes: 35 additions & 20 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,46 @@
const {declare} = require('@babel/helper-plugin-utils')
const {default: presetEnv} = require('@babel/preset-env')

const presetEnvOptions = {
modules: false,
loose: true,
shippedProposals: true,
// we need the spread to not be loose:
exclude: [
'@babel/plugin-transform-spread',
'@babel/plugin-transform-destructuring',
],
...(process.env.NODE_ENV === 'test'
? {
targets: {
node: 'current',
},
}
: {}),
}

module.exports = {
presets: [
[
'@babel/preset-env',
{
modules: process.env.BABEL_MODULES ? false : 'umd',
loose: true,
shippedProposals: true,
// we need the spread to not be loose:
exclude: [
'@babel/plugin-transform-spread',
'@babel/plugin-transform-destructuring',
],
...(process.env.NODE_ENV === 'test'
? {
targets: {
node: 'current',
},
}
: {}),
},
],
['@babel/preset-env', presetEnvOptions],
'@babel/preset-typescript',
],
plugins: [
'@babel/plugin-syntax-bigint',
'@babel/plugin-transform-spread',
'@babel/plugin-transform-destructuring',
...(process.env.BABEL_MODULES
? []
: [
[
'@babel/plugin-transform-modules-umd',
{
globals: {
hashids: 'Hashids',
},
exactGlobals: true,
},
],
]),
],
exclude: ['./dist', './cjs', './esm'],
moduleId: 'Hashids',
Expand Down
54 changes: 28 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,36 +74,38 @@
"not dead"
],
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/helper-plugin-utils": "^7.10.4",
"@babel/plugin-syntax-bigint": "^7.8.3",
"@babel/plugin-transform-destructuring": "^7.8.3",
"@babel/plugin-transform-spread": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/preset-typescript": "^7.8.3",
"@babel/register": "^7.8.3",
"@babel/plugin-transform-destructuring": "^7.12.1",
"@babel/plugin-transform-modules-umd": "^7.12.1",
"@babel/plugin-transform-spread": "^7.12.1",
"@babel/preset-env": "^7.12.11",
"@babel/preset-typescript": "^7.12.7",
"@babel/register": "^7.12.10",
"@types/jest": "^26.0.19",
"@types/node": "^13.7.0",
"@typescript-eslint/eslint-plugin": "^2.19.0",
"@typescript-eslint/parser": "^2.19.0",
"@yarnpkg/pnpify": "^2.0.0-rc.17",
"coveralls": "^3.0.9",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-import-resolver-node": "^0.3.3",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jest": "^23.6.0",
"husky": "^4.2.1",
"jest": "^25.1.0",
"@types/node": "^14.14.14",
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
"@yarnpkg/pnpify": "^2.4.0",
"coveralls": "^3.1.0",
"eslint": "^7.15.0",
"eslint-config-prettier": "^7.0.0",
"eslint-import-resolver-node": "^0.3.4",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.3",
"husky": "^4.3.6",
"jest": "^26.6.3",
"nodemark": "^0.3.0",
"prettier": "^1.19.1",
"require-from-web": "^1.1.1",
"semantic-release": "^17.0.2",
"terser": "^4.6.3",
"ts-node": "^8.6.2",
"typescript": "^3.7.5"
"prettier": "^2.2.1",
"replace-in-files-cli": "^1.0.0",
"require-from-web": "^1.2.0",
"semantic-release": "^17.3.0",
"terser": "^5.5.1",
"ts-node": "^9.1.1",
"typescript": "^4.1.3"
},
"license": "MIT",
"keywords": [
Expand Down
Loading

0 comments on commit 8cca7bd

Please sign in to comment.