four-stroke 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/lint.mjs +1 -16
- package/bin/type-check.mjs +1 -16
- package/package.json +1 -1
package/bin/lint.mjs
CHANGED
|
@@ -5,22 +5,7 @@ import { cmd } from "../src/cmd.mjs";
|
|
|
5
5
|
|
|
6
6
|
cmd("react-router typegen");
|
|
7
7
|
if (fs.existsSync("wrangler.jsonc")) {
|
|
8
|
-
|
|
9
|
-
const backed = [];
|
|
10
|
-
|
|
11
|
-
for (const file of devVarsFiles) {
|
|
12
|
-
const tmp = file + ".bak.bak";
|
|
13
|
-
fs.renameSync(file, tmp);
|
|
14
|
-
backed.push({ original: file, tmp });
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
try {
|
|
18
|
-
cmd("wrangler types --strict-vars false --check");
|
|
19
|
-
} finally {
|
|
20
|
-
for (const { original, tmp } of backed) {
|
|
21
|
-
fs.renameSync(tmp, original);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
8
|
+
cmd("wrangler types --env-file /dev/null --strict-vars false --check");
|
|
24
9
|
}
|
|
25
10
|
cmd("eslint --cache --max-warnings=0");
|
|
26
11
|
cmd("prettier --cache --check .");
|
package/bin/type-check.mjs
CHANGED
|
@@ -4,22 +4,7 @@ import fs from "fs";
|
|
|
4
4
|
import { cmd } from "../src/cmd.mjs";
|
|
5
5
|
|
|
6
6
|
if (fs.existsSync("wrangler.jsonc")) {
|
|
7
|
-
|
|
8
|
-
const backed = [];
|
|
9
|
-
|
|
10
|
-
for (const file of devVarsFiles) {
|
|
11
|
-
const tmp = file + ".bak.bak";
|
|
12
|
-
fs.renameSync(file, tmp);
|
|
13
|
-
backed.push({ original: file, tmp });
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
try {
|
|
17
|
-
cmd("wrangler types --strict-vars false");
|
|
18
|
-
} finally {
|
|
19
|
-
for (const { original, tmp } of backed) {
|
|
20
|
-
fs.renameSync(tmp, original);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
7
|
+
cmd("wrangler types --env-file /dev/null --strict-vars false");
|
|
23
8
|
}
|
|
24
9
|
cmd("vite build");
|
|
25
10
|
cmd("tsc --noEmit");
|