mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: fix some packages required prepare scripts
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
0bd7b1fe92
commit
f8ac072df9
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
@ -1,3 +1,8 @@
|
|||||||
{
|
{
|
||||||
"eslint.workingDirectories": [{ "mode": "auto" }]
|
"eslint.workingDirectories": [
|
||||||
}
|
{
|
||||||
|
"mode": "auto"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"typescript.tsdk": "node_modules/typescript/lib"
|
||||||
|
}
|
||||||
|
|||||||
605
package-lock.json
generated
605
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://json.schemastore.org/swcrc",
|
|
||||||
"jsc": {
|
|
||||||
"parser": {
|
|
||||||
"syntax": "typescript"
|
|
||||||
},
|
|
||||||
"target": "es2022"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -3,8 +3,8 @@
|
|||||||
"version": "6.5.0-alpha.2",
|
"version": "6.5.0-alpha.2",
|
||||||
"description": "Injection token exporter for cluster settings configuration",
|
"description": "Injection token exporter for cluster settings configuration",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"type": "commonjs",
|
||||||
"private": false,
|
"private": false,
|
||||||
"mode": "production",
|
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://registry.npmjs.org/"
|
"registry": "https://registry.npmjs.org/"
|
||||||
@ -16,8 +16,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist/",
|
"clean": "rimraf dist/",
|
||||||
"generate-types": "tsc --d --declarationDir ./dist --declarationMap --emitDeclarationOnly",
|
"build": "webpack"
|
||||||
"build": "npm run generate-types && swc ./src/index.ts -d ./dist"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"rimraf": "^4.4.1"
|
"rimraf": "^4.4.1"
|
||||||
|
|||||||
@ -1,18 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "@k8slens/typescript/config/base.json",
|
||||||
"compilerOptions": {
|
"include": ["**/*.ts"]
|
||||||
"outDir": "dist/",
|
|
||||||
"paths": {
|
|
||||||
"*": [
|
|
||||||
"node_modules/*",
|
|
||||||
"types/*"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"src/**/*",
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"node_modules",
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
1
packages/cluster-settings/webpack.config.js
Normal file
1
packages/cluster-settings/webpack.config.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
module.exports = require("@k8slens/webpack").configForNode;
|
||||||
@ -2,6 +2,10 @@ const ForkTsCheckerPlugin = require("fork-ts-checker-webpack-plugin");
|
|||||||
const { MakePeerDependenciesExternalPlugin } = require("./plugins/make-peer-dependencies-external");
|
const { MakePeerDependenciesExternalPlugin } = require("./plugins/make-peer-dependencies-external");
|
||||||
const { ProtectFromImportingNonDependencies } = require("./plugins/protect-from-importing-non-dependencies");
|
const { ProtectFromImportingNonDependencies } = require("./plugins/protect-from-importing-non-dependencies");
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @returns {import("webpack").Configuration}
|
||||||
|
*/
|
||||||
module.exports = ({ entrypointFilePath, outputDirectory }) => ({
|
module.exports = ({ entrypointFilePath, outputDirectory }) => ({
|
||||||
name: entrypointFilePath,
|
name: entrypointFilePath,
|
||||||
entry: { index: entrypointFilePath },
|
entry: { index: entrypointFilePath },
|
||||||
@ -45,7 +49,9 @@ module.exports = ({ entrypointFilePath, outputDirectory }) => ({
|
|||||||
? "index.js"
|
? "index.js"
|
||||||
: `${pathData.chunk.name}/index.js`,
|
: `${pathData.chunk.name}/index.js`,
|
||||||
|
|
||||||
libraryTarget: "commonjs2",
|
library: {
|
||||||
|
type: "commonjs2"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
externalsPresets: { node: true },
|
externalsPresets: { node: true },
|
||||||
|
|||||||
@ -10,23 +10,18 @@
|
|||||||
},
|
},
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist/",
|
"clean": "rimraf dist/",
|
||||||
"build": "webpack --config webpack.ts"
|
"build": "webpack"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"node-fetch": "^3.3.0",
|
"node-fetch": "^3.3.0"
|
||||||
"rimraf": "^4.4.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"rimraf": "^4.4.1",
|
"rimraf": "^4.4.1"
|
||||||
"ts-loader": "^9.4.2",
|
|
||||||
"ts-node": "^10.9.1",
|
|
||||||
"typescript": "^4.9.5",
|
|
||||||
"webpack": "^5.77.0",
|
|
||||||
"webpack-cli": "^5.0.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,18 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "@k8slens/typescript/config/base.json",
|
||||||
"compilerOptions": {
|
"include": ["**/*.ts"]
|
||||||
"outDir": "dist/",
|
|
||||||
"paths": {
|
|
||||||
"*": [
|
|
||||||
"node_modules/*",
|
|
||||||
"types/*"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"src/**/*",
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"node_modules",
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,13 +1,9 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: "./src/index.ts",
|
entry: "./index.ts",
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, "dist"),
|
path: path.resolve("dist"),
|
||||||
filename: "index.js",
|
filename: "index.js",
|
||||||
library: {
|
library: {
|
||||||
type: "commonjs",
|
type: "commonjs",
|
||||||
@ -26,8 +22,8 @@ export default {
|
|||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.(ts|tsx)$/,
|
test: /\.(ts|tsx)$/,
|
||||||
loader: "ts-loader",
|
loader: "ts-loader",
|
||||||
options: {
|
options: {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
@ -41,5 +37,5 @@ export default {
|
|||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [".ts"],
|
extensions: [".ts"],
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
Loading…
Reference in New Issue
Block a user