cli: fix for dist/node_modules being trimmed from published packages
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/cli': patch
|
||||
---
|
||||
|
||||
Fixed an issue where `.css` style injection would fail for published packages.
|
||||
@@ -140,6 +140,7 @@
|
||||
"rollup-plugin-dts": "^6.1.0",
|
||||
"rollup-plugin-esbuild": "^6.1.1",
|
||||
"rollup-plugin-postcss": "^4.0.0",
|
||||
"rollup-plugin-rename-node-modules": "^1.3.1",
|
||||
"rollup-pluginutils": "^2.8.2",
|
||||
"semver": "^7.5.3",
|
||||
"style-loader": "^3.3.1",
|
||||
|
||||
@@ -25,6 +25,7 @@ import svgr from '@svgr/rollup';
|
||||
import dts from 'rollup-plugin-dts';
|
||||
import json from '@rollup/plugin-json';
|
||||
import yaml from '@rollup/plugin-yaml';
|
||||
import renameNodeModules from 'rollup-plugin-rename-node-modules';
|
||||
import {
|
||||
RollupOptions,
|
||||
OutputOptions,
|
||||
@@ -181,6 +182,7 @@ export async function makeRollupConfigs(
|
||||
include: /\.icon\.svg$/,
|
||||
template: svgrTemplate,
|
||||
}),
|
||||
renameNodeModules('node_modules_dist'),
|
||||
esbuild({
|
||||
target: 'ES2022',
|
||||
minify: options.minify,
|
||||
|
||||
@@ -4054,6 +4054,7 @@ __metadata:
|
||||
rollup-plugin-dts: ^6.1.0
|
||||
rollup-plugin-esbuild: ^6.1.1
|
||||
rollup-plugin-postcss: ^4.0.0
|
||||
rollup-plugin-rename-node-modules: ^1.3.1
|
||||
rollup-pluginutils: ^2.8.2
|
||||
semver: ^7.5.3
|
||||
style-loader: ^3.3.1
|
||||
@@ -40811,6 +40812,18 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"rollup-plugin-rename-node-modules@npm:^1.3.1":
|
||||
version: 1.3.1
|
||||
resolution: "rollup-plugin-rename-node-modules@npm:1.3.1"
|
||||
dependencies:
|
||||
estree-walker: ^2.0.1
|
||||
magic-string: ^0.25.7
|
||||
peerDependencies:
|
||||
rollup: ^2.28.2
|
||||
checksum: ef64fca4ae6e3b5f45d438315a34c368b259b7024f3f6a2f73c6fd819fdf98d7623327abdd0d641694ce030641312d4e91ce4cb171e195fc9f580a3a02f303ff
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"rollup-plugin-smart-asset@npm:^2.1.2":
|
||||
version: 2.1.2
|
||||
resolution: "rollup-plugin-smart-asset@npm:2.1.2"
|
||||
|
||||
Reference in New Issue
Block a user