Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripudil committed Sep 16, 2023
1 parent f84ff0c commit cea8c4c
Show file tree
Hide file tree
Showing 6 changed files with 1,529 additions and 1,344 deletions.
6 changes: 0 additions & 6 deletions .browserslistrc

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
with:
node-version: lts/*
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn run playwright install-deps
- run: yarn install --immutable
- run: yarn run playwright install --with-deps
- run: yarn lint
- run: yarn build # type check
- run: yarn test
Expand Down
5 changes: 1 addition & 4 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@
coverage/
node_modules/
tests/
.browserslistrc
.eslintrc
.gitignore
.npmignore
.nycrc
babel.config.js
karma.conf.js
karma.playwright.js
rollup.config.js
rollup.config.mjs
yarn.lock
44 changes: 21 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,35 @@
"unpkg": "dist/Naja.min.js",
"module": "dist/Naja.esm.js",
"types": "dist/index.esm.d.ts",
"dependencies": {
"@babel/runtime": "^7.18.3"
},
"devDependencies": {
"@babel/core": "^7.18.2",
"@babel/plugin-transform-runtime": "^7.18.2",
"@babel/plugin-transform-runtime": "^7.22.15",
"@babel/preset-env": "^7.18.2",
"@babel/preset-typescript": "^7.17.12",
"@babel/runtime": "^7.22.15",
"@onslip/karma-playwright-launcher": "^0.2.1",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^14.0.1",
"@rollup/plugin-typescript": "^8.3.2",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"babel-plugin-istanbul": "^6.0.0",
"chai": "^4.3.4",
"eslint": "^8.16.0",
"karma": "^6.3.20",
"karma-coverage": "^2.2.0",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^11.1.3",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"babel-plugin-istanbul": "^6.1.1",
"chai": "^4.3.8",
"eslint": "^8.49.0",
"karma": "^6.4.2",
"karma-coverage": "^2.2.1",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-mocha": "^2.0.1",
"karma-rollup-preprocessor": "7.0.7",
"mocha": "^10.0.0",
"nette-forms": "^3.2.0",
"playwright": "^1.22.2",
"rollup": "^2.74.1",
"rollup-plugin-terser": "^7.0.2",
"sinon": "^14.0.0",
"tslib": "^2.4.0",
"typescript": "^4.7.2"
"mocha": "^10.2.0",
"nette-forms": "^3.3.1",
"playwright": "^1.38.0",
"rollup": "^3.29.2",
"sinon": "^16.0.0",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
},
"scripts": {
"build": "NODE_ENV=production rollup -c",
Expand Down
15 changes: 3 additions & 12 deletions rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
import babel from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';
import typescript from '@rollup/plugin-typescript';
import {terser} from 'rollup-plugin-terser';
import path from 'path';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

const output = {
banner: `/*\n * Naja.js\n * ${pkg.version}\n *\n * by Jiří Pudil <https://jiripudil.cz>\n */`,
sourcemap: true,
};

const babelPlugin = babel({
exclude: /node_modules/,
include: 'src/**',
babelHelpers: 'runtime',
});

export default [
{
// ESM build for modern tools like webpack
Expand All @@ -35,7 +29,6 @@ export default [
resolve(),
commonjs(),
typescript(),
babelPlugin,
],
},
{
Expand Down Expand Up @@ -73,7 +66,6 @@ export default [
resolve(),
commonjs(),
typescript(),
babelPlugin,
terser(),
],
},
Expand All @@ -91,7 +83,6 @@ export default [
resolve(),
commonjs(),
typescript(),
babelPlugin,
],
},
];
Loading

0 comments on commit cea8c4c

Please sign in to comment.