Skip to content

Commit

Permalink
Rollup and some other dependencies are upgarded.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezze committed Sep 14, 2020
1 parent 9368ed5 commit badfe62
Show file tree
Hide file tree
Showing 6 changed files with 2,738 additions and 2,460 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
@@ -1,8 +1,7 @@
## Changelog

### 4.0.1 (2020-08-25)

- TypeScript support is added via new TypeScript definitions file.
- TypeScript support is added via new TypeScript definitions file (#71).
- Rollup and some other dependencies are upgraded.

### 4.0.0 (2020-01-21)

Expand Down
41 changes: 20 additions & 21 deletions package.json
Expand Up @@ -41,29 +41,28 @@
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.8.3",
"@babel/core": "^7.8.3",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-json-strings": "^7.8.3",
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-json-strings": "^7.10.4",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-import-meta": "^7.8.3",
"@babel/preset-env": "^7.8.3",
"@babel/register": "^7.8.3",
"chokidar": "^3.3.1",
"copyfiles": "^2.2.0",
"coveralls": "^3.0.9",
"cross-env": "^6.0.3",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.20.0",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/preset-env": "^7.11.5",
"@babel/register": "^7.11.5",
"@rollup/plugin-babel": "^5.2.1",
"chokidar": "^3.4.2",
"copyfiles": "^2.3.0",
"coveralls": "^3.1.0",
"cross-env": "^7.0.2",
"eslint": "^7.9.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-plugin-import": "^2.22.0",
"glob": "^7.1.6",
"jest": "^24.9.0",
"prepend-file": "^1.3.1",
"rimraf": "^3.0.0",
"rollup": "^1.29.1",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-uglify": "^6.0.4",
"uglify-es": "^3.3.9"
"jest": "^26.4.2",
"prepend-file": "^2.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.26.11",
"rollup-plugin-terser": "^7.0.2"
},
"homepage": "https://github.com/shashwatak/satellite-js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.es.js
@@ -1,4 +1,4 @@
import babel from 'rollup-plugin-babel';
import babel from '@rollup/plugin-babel';

export default {
input: 'src/index.js',
Expand Down
9 changes: 4 additions & 5 deletions rollup.config.js
@@ -1,6 +1,5 @@
import babel from 'rollup-plugin-babel';
import { uglify } from 'rollup-plugin-uglify';
import { minify } from 'uglify-es';
import babel from '@rollup/plugin-babel';
import { terser } from 'rollup-plugin-terser';

const { NODE_ENV } = process.env;

Expand All @@ -16,7 +15,7 @@ const babelOptions = {
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
['@babel/plugin-proposal-class-properties', { loose: false }],
'@babel/plugin-proposal-json-strings'
'@babel/plugin-proposal-json-strings',
],
exclude: 'node_modules/**',
};
Expand All @@ -26,7 +25,7 @@ const plugins = [
];

if (NODE_ENV === 'production') {
plugins.push(uglify({}, minify));
plugins.push(terser());
}

export default {
Expand Down
8 changes: 3 additions & 5 deletions rollup.watch.es.js
Expand Up @@ -8,14 +8,12 @@ config.watch = {
};

const watcher = watch(config);
watcher.on('event', event => {
watcher.on('event', (event) => {
if (event.code === 'START') {
console.log('Rebuilding package...');
}
else if (event.code === 'END') {
} else if (event.code === 'END') {
console.log('Package is rebuilt.');
}
else if (event.code === 'FATAL') {
} else if (event.code === 'FATAL') {
console.log('Fatal error is occurred.');
}
});

0 comments on commit badfe62

Please sign in to comment.