Use flag for --no-install
This commit is contained in:
parent
cc81ceb838
commit
8187595f25
|
@ -27,8 +27,8 @@ the theme when you save a file.
|
||||||
Building using the script above will automatically install the updated version of the theme in
|
Building using the script above will automatically install the updated version of the theme in
|
||||||
Replugged. You can find the theme folder directories for your OS
|
Replugged. You can find the theme folder directories for your OS
|
||||||
[here](https://github.com/replugged-org/replugged#installing-plugins-and-themes).
|
[here](https://github.com/replugged-org/replugged#installing-plugins-and-themes).
|
||||||
If you don't want to install the updated version, set the `NO_INSTALL` environment variable with any
|
If you don't want to install the updated version, append the `--no-install` flag:
|
||||||
value: `NO_INSTALL=true pnpm run build`.
|
`pnpm run build --no-install`.
|
||||||
|
|
||||||
You can format the code by running `pnpm run lint:fix`. The repository includes VSCode settings to
|
You can format the code by running `pnpm run lint:fix`. The repository includes VSCode settings to
|
||||||
automatically format on save.
|
automatically format on save.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"build": "tsx scripts/build.ts",
|
"build": "tsx scripts/build.ts",
|
||||||
"watch": "tsx scripts/build.ts --watch",
|
"watch": "tsx scripts/build.ts --watch",
|
||||||
"bundle": "tsx scripts/bundle.ts",
|
"bundle": "tsx scripts/bundle.ts",
|
||||||
"build-and-bundle": "NO_INSTALL=true pnpm run build && pnpm run bundle",
|
"build-and-bundle": "pnpm run build --no-install && pnpm run bundle",
|
||||||
"lint": "prettier ./src ./scripts --check",
|
"lint": "prettier ./src ./scripts --check",
|
||||||
"lint:fix": "prettier ./src ./scripts --write"
|
"lint:fix": "prettier ./src ./scripts --write"
|
||||||
},
|
},
|
||||||
|
|
|
@ -49,7 +49,7 @@ export const CONFIG_PATH = (() => {
|
||||||
})();
|
})();
|
||||||
|
|
||||||
async function install() {
|
async function install() {
|
||||||
if (!process.env.NO_INSTALL) {
|
if (!process.argv.includes("--no-install")) {
|
||||||
const dest = join(CONFIG_PATH, "themes", manifest.id);
|
const dest = join(CONFIG_PATH, "themes", manifest.id);
|
||||||
if (existsSync(dest)) {
|
if (existsSync(dest)) {
|
||||||
rmSync(dest, { recursive: true });
|
rmSync(dest, { recursive: true });
|
||||||
|
|
Loading…
Reference in a new issue