mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
Clean up dependencies after migrating to Storybook v8 (#44857)
* Remove storybook v6 dependencies * Remove deprecated or unneeded babel plugins * Add `memfs` for `check-redirects.test.js` * Remove `memfs` from the root package.json * Ignore tests from `docs/check-redirects`
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ module.exports = {
|
||||
// 'node_modules/.pnpm/@scope+pkg-b@x.x.x/node_modules/@scope/pkg-b/'.
|
||||
transformIgnorePatterns: [`node_modules/(?!.pnpm|${esModules})`],
|
||||
coverageReporters: ['text-summary', 'lcov'],
|
||||
testPathIgnorePatterns: ['e2e'],
|
||||
testPathIgnorePatterns: ['e2e', 'docs/check-redirects'],
|
||||
testEnvironmentOptions: {
|
||||
customExportConditions: [''],
|
||||
},
|
||||
|
||||
@@ -27,14 +27,6 @@
|
||||
"nop": "exit 0"
|
||||
},
|
||||
"private": true,
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"minimist": "^1.2.8",
|
||||
"trim": "0.0.3",
|
||||
"webpack": "^5.88.2",
|
||||
"x-default-browser": "^0.5.2"
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gravitational/build": "workspace:*",
|
||||
"@storybook/components": "^8.2.5",
|
||||
|
||||
Generated
+6
-2137
File diff suppressed because it is too large
Load Diff
@@ -16,13 +16,6 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
const plugins = [
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
'@babel/plugin-proposal-object-rest-spread',
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-syntax-dynamic-import',
|
||||
];
|
||||
|
||||
function makePresets(test = false) {
|
||||
if (test) {
|
||||
return [
|
||||
@@ -60,20 +53,17 @@ module.exports = {
|
||||
},
|
||||
development: {
|
||||
plugins: [
|
||||
...plugins,
|
||||
['babel-plugin-styled-components', { displayName: true, ssr: false }],
|
||||
],
|
||||
},
|
||||
production: {
|
||||
plugins: [
|
||||
...plugins,
|
||||
['babel-plugin-styled-components', { displayName: false, ssr: false }],
|
||||
],
|
||||
},
|
||||
},
|
||||
presets: makePresets(),
|
||||
plugins: [
|
||||
...plugins,
|
||||
['babel-plugin-styled-components', { displayName: false, ssr: false }],
|
||||
],
|
||||
};
|
||||
|
||||
@@ -11,21 +11,13 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.24.7",
|
||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/preset-env": "^7.24.7",
|
||||
"@babel/preset-react": "^7.24.7",
|
||||
"@babel/preset-typescript": "^7.24.7",
|
||||
"@storybook/addon-toolbars": "^6.5.16",
|
||||
"@storybook/builder-webpack5": "^6.5.16",
|
||||
"@storybook/manager-webpack5": "^6.5.16",
|
||||
"@swc/core": "^1.7.0",
|
||||
"@swc/plugin-styled-components": "^2.0.10",
|
||||
"@types/jsdom": "^21.1.7",
|
||||
"@vitejs/plugin-react-swc": "^3.7.0",
|
||||
"babel-loader": "^8.2.5",
|
||||
"babel-plugin-styled-components": "^2.1.4",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-import-resolver-typescript": "^3.6.1",
|
||||
@@ -44,8 +36,5 @@
|
||||
"typescript-eslint": "^7.14.1",
|
||||
"vite-plugin-wasm": "^3.3.0",
|
||||
"vite-tsconfig-paths": "^4.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ts-loader": "^9.5.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user