From 2a0fbf6016aa629b50391408a2c00efa13b05739 Mon Sep 17 00:00:00 2001 From: basilgood Date: Tue, 6 Aug 2024 18:22:07 +0300 Subject: [PATCH] fix: build error --- .storybook/main.js | 5 +++ package-lock.json | 81 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 7 ++-- 3 files changed, 90 insertions(+), 3 deletions(-) diff --git a/.storybook/main.js b/.storybook/main.js index 658dee7..487e6cd 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -1,3 +1,4 @@ +import rollupCommonjs from '@rollup/plugin-commonjs'; import esbuild from 'rollup-plugin-esbuild'; /** @type { import('@web/storybook-framework-web-components').StorybookConfig } */ @@ -10,10 +11,14 @@ const config = { docs: { autodocs: true, }, + core: { + disableTelemetry: true, + }, /* Try to make the build parse TS files */ async rollupFinal(config) { // add extra configuration for rollup // e.g. a new plugin + config.plugins.push(rollupCommonjs({})); config.plugins.push(esbuild({})); return config; diff --git a/package-lock.json b/package-lock.json index 60741f8..b04c076 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "@commitlint/config-conventional": "^19.2.2", "@neovici/cfg": "^1.54.1", "@open-wc/testing": "^4.0.0", + "@rollup/plugin-commonjs": "^26.0.1", "@semantic-release/changelog": "^6.0.0", "@semantic-release/git": "^10.0.0", "@storybook/addon-essentials": "^7.6.19", @@ -5025,6 +5026,79 @@ "@babel/runtime": "^7.13.10" } }, + "node_modules/@rollup/plugin-commonjs": { + "version": "26.0.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-26.0.1.tgz", + "integrity": "sha512-UnsKoZK6/aGIH6AdkptXhNvhaqftcjq3zZdT+LY5Ftms6JR06nADcDsYp5hTU9E2lbJUEOhdlY5J4DNTneM+jQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "commondir": "^1.0.1", + "estree-walker": "^2.0.2", + "glob": "^10.4.1", + "is-reference": "1.2.1", + "magic-string": "^0.30.3" + }, + "engines": { + "node": ">=16.0.0 || 14 >= 14.17" + }, + "peerDependencies": { + "rollup": "^2.68.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/@rollup/plugin-node-resolve": { "version": "15.2.3", "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz", @@ -21833,6 +21907,13 @@ "node": ">= 14" } }, + "node_modules/package-json-from-dist": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", + "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/pako": { "version": "0.2.9", "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", diff --git a/package.json b/package.json index 868dd21..2f85ff2 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "@commitlint/config-conventional": "^19.2.2", "@neovici/cfg": "^1.54.1", "@open-wc/testing": "^4.0.0", + "@rollup/plugin-commonjs": "^26.0.1", "@semantic-release/changelog": "^6.0.0", "@semantic-release/git": "^10.0.0", "@storybook/addon-essentials": "^7.6.19", @@ -83,12 +84,12 @@ "@types/node": "^20.12.13", "@web/storybook-builder": "^0.1.16", "@web/storybook-framework-web-components": "^0.1.2", - "storybook": "^7.6.19", "esbuild": "^0.21.4", "http-server": "^14.1.1", - "rollup-plugin-esbuild": "^6.1.1", "husky": "^9.0.11", + "rollup-plugin-esbuild": "^6.1.1", "semantic-release": "^24.0.0", - "sinon": "^18.0.0" + "sinon": "^18.0.0", + "storybook": "^7.6.19" } }