diff --git a/.changeset/weak-parrots-push.md b/.changeset/weak-parrots-push.md new file mode 100644 index 000000000..959e4d2b3 --- /dev/null +++ b/.changeset/weak-parrots-push.md @@ -0,0 +1,5 @@ +--- +'@web/storybook-builder': patch +--- + +fix relative path by starting with ./ diff --git a/package-lock.json b/package-lock.json index 2a6a0a5b9..a309041ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40086,7 +40086,7 @@ "picomatch": "^2.2.2" }, "devDependencies": { - "@web/test-runner": "^0.18.0" + "@web/test-runner": "^0.19.0" }, "engines": { "node": ">=18.0.0" @@ -40156,7 +40156,7 @@ "@rollup/plugin-replace": "^5.0.5", "@types/parse5": "^6.0.1", "@types/whatwg-url": "^11.0.0", - "@web/test-runner-chrome": "^0.16.0", + "@web/test-runner-chrome": "^0.17.0", "@web/test-runner-core": "^0.13.0", "chai": "^4.2.0", "mocha": "^10.2.0", @@ -41021,7 +41021,7 @@ }, "packages/mocks": { "name": "@web/mocks", - "version": "1.2.2", + "version": "1.2.3", "license": "MIT", "dependencies": { "@storybook/manager-api": "^7.0.0", @@ -41536,7 +41536,7 @@ }, "packages/storybook-builder": { "name": "@web/storybook-builder", - "version": "0.1.16", + "version": "0.1.17", "license": "MIT", "dependencies": { "@rollup/plugin-node-resolve": "^15.1.0", @@ -41701,11 +41701,11 @@ }, "packages/storybook-framework-web-components": { "name": "@web/storybook-framework-web-components", - "version": "0.1.2", + "version": "0.1.3", "license": "MIT", "dependencies": { "@storybook/web-components": "^7.0.0", - "@web/storybook-builder": "^0.1.0" + "@web/storybook-builder": "^0.1.17" }, "devDependencies": { "@playwright/test": "^1.22.2", @@ -41743,13 +41743,13 @@ }, "packages/test-runner": { "name": "@web/test-runner", - "version": "0.18.3", + "version": "0.19.0", "license": "MIT", "dependencies": { "@web/browser-logs": "^0.4.0", "@web/config-loader": "^0.3.0", "@web/dev-server": "^0.4.0", - "@web/test-runner-chrome": "^0.16.0", + "@web/test-runner-chrome": "^0.17.0", "@web/test-runner-commands": "^0.9.0", "@web/test-runner-core": "^0.13.0", "@web/test-runner-mocha": "^0.9.0", @@ -41830,7 +41830,7 @@ }, "packages/test-runner-chrome": { "name": "@web/test-runner-chrome", - "version": "0.16.0", + "version": "0.17.0", "license": "MIT", "dependencies": { "@web/test-runner-core": "^0.13.0", @@ -41919,7 +41919,7 @@ "mkdirp": "^1.0.4" }, "devDependencies": { - "@web/test-runner-chrome": "^0.16.0", + "@web/test-runner-chrome": "^0.17.0", "@web/test-runner-playwright": "^0.11.0", "@web/test-runner-webdriver": "^0.8.0", "mocha": "^10.2.0" @@ -42090,10 +42090,10 @@ }, "packages/test-runner-junit-reporter": { "name": "@web/test-runner-junit-reporter", - "version": "0.7.1", + "version": "0.7.2", "license": "MIT", "dependencies": { - "@web/test-runner-chrome": "^0.16.0", + "@web/test-runner-chrome": "^0.17.0", "@web/test-runner-core": "^0.13.0", "array-flat-polyfill": "^1.0.1", "xml": "^1.0.1" @@ -42131,7 +42131,7 @@ "es-module-lexer": "^1.3.1" }, "devDependencies": { - "@web/test-runner-chrome": "^0.16.0", + "@web/test-runner-chrome": "^0.17.0", "@web/test-runner-core": "^0.13.0" }, "engines": { @@ -42162,10 +42162,10 @@ }, "packages/test-runner-puppeteer": { "name": "@web/test-runner-puppeteer", - "version": "0.16.0", + "version": "0.17.0", "license": "MIT", "dependencies": { - "@web/test-runner-chrome": "^0.16.0", + "@web/test-runner-chrome": "^0.17.0", "@web/test-runner-core": "^0.13.0", "puppeteer": "^23.2.0" }, @@ -42508,7 +42508,7 @@ }, "packages/test-runner-visual-regression": { "name": "@web/test-runner-visual-regression", - "version": "0.9.0", + "version": "0.10.0", "license": "MIT", "dependencies": { "@types/mkdirp": "^1.0.1", @@ -42521,7 +42521,7 @@ "pngjs": "^7.0.0" }, "devDependencies": { - "@web/test-runner-chrome": "^0.16.0", + "@web/test-runner-chrome": "^0.17.0", "@web/test-runner-playwright": "^0.11.0", "@web/test-runner-webdriver": "^0.8.0", "mocha": "^10.2.0" diff --git a/packages/storybook-builder/src/esbuild-plugin-commonjs-named-exports.ts b/packages/storybook-builder/src/esbuild-plugin-commonjs-named-exports.ts index 3f5b87c4d..4d8218d04 100644 --- a/packages/storybook-builder/src/esbuild-plugin-commonjs-named-exports.ts +++ b/packages/storybook-builder/src/esbuild-plugin-commonjs-named-exports.ts @@ -58,7 +58,7 @@ export function esbuildPluginCommonjsNamedExports(modules: string[]): Plugin { return { resolveDir, - contents: `export { ${finalExports.join(',')} } from '${slash( + contents: `export { ${finalExports.join(',')} } from './${slash( relative(resolveDir, resolvedPath), )}';`, };