Skip to content

Commit

Permalink
chore(rollup): update all rollup related dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gcornut committed Dec 18, 2024
1 parent 8508468 commit 068e465
Show file tree
Hide file tree
Showing 7 changed files with 334 additions and 157 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ yo-generators/**
storybook
**/style-dictionary
**/*.config.js
**/*.config.mjs
packages/site-demo/plugins
packages/lumx-angularjs
packages/lumx-react/jest
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"build:site": "yarn workspace lumx-site-demo clean && yarn workspace lumx-site-demo build",
"build:react": "yarn workspace @lumx/react build",
"build:core": "yarn workspace @lumx/core build",
"build:icons": "yarn workspace @lumx/icons build",
"build:angularjs": "yarn workspace @lumx/angularjs build",
"build:storybook": "yarn workspace @lumx/react build:storybook",
"chromatic": "npx chromatic -b build:storybook",
Expand Down
10 changes: 5 additions & 5 deletions packages/lumx-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"devDependencies": {
"@mdi/svg": "5.8.55",
"@mdi/util": "^0.3.2",
"@rollup/plugin-node-resolve": "9.0.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "16.0.0",
"@xmldom/xmldom": "^0.8.3",
"fonteditor-core": "^2.3.2",
"lodash": "4.17.21",
"rollup": "2.79.2",
"rollup-plugin-babel": "^4.4.0",
"rollup": "3.29.5",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.1.1",
"svgo": "^3.2.0",
"svgtofont": "^4.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import path from 'path';
import glob from 'glob';
import resolve from '@rollup/plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import { babel } from '@rollup/plugin-babel';
import copy from 'rollup-plugin-copy';
import cleaner from 'rollup-plugin-cleaner';
import dts from 'rollup-plugin-dts';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };
import CONFIGS from '../../configs/index.js';

const CONFIGS = require('../../configs');
const importUrl = new URL(import.meta.url);
const __dirname = path.dirname(importUrl.pathname);

const DIST_PATH = path.resolve(__dirname, pkg.publishConfig.directory);
export const extensions = ['.js', '.ts'];
Expand All @@ -34,7 +36,7 @@ const bundleJS = {
/** Clean dist dir */
cleaner({ targets: [DIST_PATH] }),
/** Resolve source files. */
resolve({ browser: true, extensions }),
nodeResolve({ browser: true, extensions }),
/** Transpile JS. */
babel({
extensions,
Expand Down
17 changes: 8 additions & 9 deletions packages/lumx-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
"@babel/preset-env": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@rollup/plugin-commonjs": "^15.0.0",
"@rollup/plugin-node-resolve": "9.0.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^19.0.2",
"@rollup/plugin-node-resolve": "16.0.0",
"@storybook/addon-a11y": "^7.6.3",
"@storybook/addon-essentials": "^7.6.3",
"@storybook/addon-interactions": "^7.6.3",
Expand Down Expand Up @@ -58,15 +59,13 @@
"jest-environment-jsdom": "29.1.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rollup": "2.79.2",
"rollup-plugin-analyzer": "^3.3.0",
"rollup-plugin-babel": "^4.4.0",
"rollup": "3.29.5",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-dts": "^4.2.2",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-ts-paths-resolve": "^1.3.0",
"rollup-plugin-typescript-paths": "^1.2.2",
"rollup-plugin-ts-paths-resolve": "^1.7.1",
"storybook": "^7.6.3",
"typescript": "^5.4.3",
"vite": "^4.2.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import path from 'path';
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import analyze from 'rollup-plugin-analyzer';
import babel from 'rollup-plugin-babel';
import { babel } from '@rollup/plugin-babel';
import cleaner from 'rollup-plugin-cleaner';
import copy from 'rollup-plugin-copy';
import dts from 'rollup-plugin-dts';
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
import tsPathsResolve from 'rollup-plugin-ts-paths-resolve';
import { tsPathsResolve } from 'rollup-plugin-ts-paths-resolve';

import pkg from './package.json';
const CONFIGS = require('../../configs');
import pkg from './package.json' assert { type: 'json' };
import CONFIGS from '../../configs/index.js';

const importUrl = new URL(import.meta.url);
const __dirname = path.dirname(importUrl.pathname);

const ROOT_PATH = path.resolve(__dirname, '..', '..');
const DIST_PATH = path.resolve(__dirname, pkg.publishConfig.directory);
Expand Down Expand Up @@ -46,7 +49,7 @@ const bundleJS = {
/** Resolve tsconfig paths. */
tsPathsResolve(),
/** Resolve source files. */
resolve({ browser: true, extensions }),
nodeResolve({ browser: true, extensions }),
/** Resolve commonjs dependencies. */
commonjs({ include: /node_modules/ }),
/** Transpile JS/TS. */
Expand Down
Loading

0 comments on commit 068e465

Please sign in to comment.