mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
build fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
0b10f24d2b
commit
0b74cf8c6b
13 files changed
+183
-365
No files matched your search
@@ -11,7 +11,7 @@ module.exports = {
|
||||
"**/dist/**/*",
|
||||
"**/static/**/*",
|
||||
"**/site/**/*",
|
||||
"build/webpack/**/*",
|
||||
"**/build/webpack/**/*",
|
||||
],
|
||||
settings: {
|
||||
react: {
|
||||
@@ -50,7 +50,7 @@ module.exports = {
|
||||
],
|
||||
rules: {
|
||||
"no-constant-condition": ["error", { "checkLoops": false }],
|
||||
"header/header": [2, "./license-header"],
|
||||
"header/header": [2, "../../license-header"],
|
||||
"comma-dangle": ["error", "always-multiline"],
|
||||
"comma-spacing": "error",
|
||||
"indent": ["error", 2, {
|
||||
@@ -123,7 +123,7 @@ module.exports = {
|
||||
"no-constant-condition": ["error", {
|
||||
"checkLoops": false,
|
||||
}],
|
||||
"header/header": [2, "./license-header"],
|
||||
"header/header": [2, "../../license-header"],
|
||||
"react/prop-types": "off",
|
||||
"no-invalid-this": "off",
|
||||
"@typescript-eslint/no-invalid-this": ["error"],
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
import packageInfo from "../packages/extensions/package.json";
|
||||
import appInfo from "../package.json";
|
||||
import { SemVer } from "semver";
|
||||
import { execSync } from "child_process";
|
||||
|
||||
const { NPM_RELEASE_TAG = "latest" } = process.env;
|
||||
const version = new SemVer(appInfo.version);
|
||||
|
||||
if (NPM_RELEASE_TAG !== "latest") {
|
||||
const gitRef = execSync("git rev-parse --short HEAD", {
|
||||
encoding: "utf-8",
|
||||
});
|
||||
|
||||
version.inc("prerelease", `git.${gitRef.trim()}`);
|
||||
}
|
||||
|
||||
packageInfo.version = version.format();
|
||||
|
||||
fs.writeFileSync(path.join(__dirname, "../packages/extensions/package.json"), `${JSON.stringify(packageInfo, null, 2)}\n`);
|
||||
@@ -12,5 +12,5 @@ export {
|
||||
applicationInformationToken,
|
||||
ApplicationInformation,
|
||||
bundledExtensionInjectionToken,
|
||||
extensionApi
|
||||
extensionApi,
|
||||
};
|
||||
@@ -48,7 +48,7 @@ const config = [
|
||||
declaration: true,
|
||||
sourceMap: false,
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
...iconsAndImagesWebpackRules(),
|
||||
@@ -62,12 +62,13 @@ const config = [
|
||||
],
|
||||
},
|
||||
{
|
||||
...rendererConfig,
|
||||
...main(),
|
||||
name: "lens-app-common",
|
||||
entry: {
|
||||
common: path.resolve(__dirname, "..", "src", "common", "library.ts"),
|
||||
},
|
||||
output: {
|
||||
publicPath: "",
|
||||
library: {
|
||||
type: "commonjs2",
|
||||
},
|
||||
|
||||
@@ -2685,11 +2685,6 @@
|
||||
dependencies:
|
||||
webpack-dev-server "*"
|
||||
|
||||
"@types/webpack-env@^1.18.0":
|
||||
version "1.18.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.18.0.tgz#ed6ecaa8e5ed5dfe8b2b3d00181702c9925f13fb"
|
||||
integrity sha512-56/MAlX5WMsPVbOg7tAxnYvNYMMWr/QJiIp6BxVSW3JJXUVzzOn64qW8TzQyMSqSUFM2+PVI4aUHcHOzIz/1tg==
|
||||
|
||||
"@types/webpack-node-externals@^2.5.3":
|
||||
version "2.5.3"
|
||||
resolved "https://registry.yarnpkg.com/@types/webpack-node-externals/-/webpack-node-externals-2.5.3.tgz#921783aadda1fe686db0a70e20e4b9548b5a3cef"
|
||||
|
||||
Reference in new issue
Block a user