mirror of
https://github.com/lensapp/lens.git
synced 2025-01-07 17:10:34 +03: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",
|
||||
"description": "Injection token exporter for cluster settings configuration",
|
||||
"license": "MIT",
|
||||
"type": "commonjs",
|
||||
"private": false,
|
||||
"mode": "production",
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
@ -16,8 +16,7 @@
|
||||
],
|
||||
"scripts": {
|
||||
"clean": "rimraf dist/",
|
||||
"generate-types": "tsc --d --declarationDir ./dist --declarationMap --emitDeclarationOnly",
|
||||
"build": "npm run generate-types && swc ./src/index.ts -d ./dist"
|
||||
"build": "webpack"
|
||||
},
|
||||
"devDependencies": {
|
||||
"rimraf": "^4.4.1"
|
||||
|
@ -1,18 +1,4 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist/",
|
||||
"paths": {
|
||||
"*": [
|
||||
"node_modules/*",
|
||||
"types/*"
|
||||
]
|
||||
},
|
||||
},
|
||||
"include": [
|
||||
"src/**/*",
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
]
|
||||
"extends": "@k8slens/typescript/config/base.json",
|
||||
"include": ["**/*.ts"]
|
||||
}
|
||||
|
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 { ProtectFromImportingNonDependencies } = require("./plugins/protect-from-importing-non-dependencies");
|
||||
|
||||
/**
|
||||
*
|
||||
* @returns {import("webpack").Configuration}
|
||||
*/
|
||||
module.exports = ({ entrypointFilePath, outputDirectory }) => ({
|
||||
name: entrypointFilePath,
|
||||
entry: { index: entrypointFilePath },
|
||||
@ -45,7 +49,9 @@ module.exports = ({ entrypointFilePath, outputDirectory }) => ({
|
||||
? "index.js"
|
||||
: `${pathData.chunk.name}/index.js`,
|
||||
|
||||
libraryTarget: "commonjs2",
|
||||
library: {
|
||||
type: "commonjs2"
|
||||
}
|
||||
},
|
||||
|
||||
externalsPresets: { node: true },
|
||||
|
@ -10,23 +10,18 @@
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"clean": "rimraf dist/",
|
||||
"build": "webpack --config webpack.ts"
|
||||
"build": "webpack"
|
||||
},
|
||||
"dependencies": {
|
||||
"node-fetch": "^3.3.0",
|
||||
"rimraf": "^4.4.1"
|
||||
"node-fetch": "^3.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"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"
|
||||
"rimraf": "^4.4.1"
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,4 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist/",
|
||||
"paths": {
|
||||
"*": [
|
||||
"node_modules/*",
|
||||
"types/*"
|
||||
]
|
||||
},
|
||||
},
|
||||
"include": [
|
||||
"src/**/*",
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
]
|
||||
"extends": "@k8slens/typescript/config/base.json",
|
||||
"include": ["**/*.ts"]
|
||||
}
|
||||
|
@ -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";
|
||||
|
||||
export default {
|
||||
entry: "./src/index.ts",
|
||||
entry: "./index.ts",
|
||||
output: {
|
||||
path: path.resolve(__dirname, "dist"),
|
||||
path: path.resolve("dist"),
|
||||
filename: "index.js",
|
||||
library: {
|
||||
type: "commonjs",
|
||||
@ -26,8 +22,8 @@ export default {
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.(ts|tsx)$/,
|
||||
{
|
||||
test: /\.(ts|tsx)$/,
|
||||
loader: "ts-loader",
|
||||
options: {
|
||||
compilerOptions: {
|
||||
@ -41,5 +37,5 @@ export default {
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts"],
|
||||
},
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user