two-stroke 6.5.1 → 6.5.2
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 +4 -1
- package/bin/test.mjs +2 -2
- package/bin/type-check.mjs +4 -1
- package/package.json +1 -1
package/bin/lint.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
import fs from "fs";
|
|
3
4
|
import { cmd } from "../src/cmd.mjs";
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
if (fs.existsSync("wrangler.jsonc")) {
|
|
7
|
+
cmd("wrangler types --check")
|
|
8
|
+
}
|
|
6
9
|
cmd("eslint --cache --max-warnings=0");
|
|
7
10
|
cmd("prettier --cache --check .");
|
package/bin/test.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import prettier from "prettier";
|
|
|
8
8
|
import ts from "typescript";
|
|
9
9
|
import { Miniflare } from "miniflare";
|
|
10
10
|
|
|
11
|
-
if (fs.existsSync("wrangler.
|
|
11
|
+
if (fs.existsSync("wrangler.jsonc")) {
|
|
12
12
|
cmd("wrangler deploy --env= --dry-run --outdir=dist");
|
|
13
13
|
const miniflare = new Miniflare({
|
|
14
14
|
modules: true,
|
|
@@ -41,7 +41,7 @@ if (fs.existsSync("wrangler.toml")) {
|
|
|
41
41
|
}
|
|
42
42
|
cmd("vitest", [
|
|
43
43
|
...(!process.argv.slice(2).includes("-w") &&
|
|
44
|
-
|
|
44
|
+
!process.argv.slice(2).includes("--watch")
|
|
45
45
|
? ["--run"]
|
|
46
46
|
: []),
|
|
47
47
|
...process.argv.slice(2),
|
package/bin/type-check.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
import fs from "fs";
|
|
3
4
|
import { cmd } from "../src/cmd.mjs";
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
if (fs.existsSync("wrangler.jsonc")) {
|
|
7
|
+
cmd("wrangler types")
|
|
8
|
+
}
|
|
6
9
|
cmd("wrangler deploy --env= --dry-run --outdir=dist");
|
|
7
10
|
cmd("tsc --noEmit");
|