@firtoz/worker-helper 1.3.0 → 1.3.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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/cf-typegen.ts +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @firtoz/worker-helper
|
|
2
2
|
|
|
3
|
+
## 1.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`70856f6`](https://github.com/firtoz/fullstack-toolkit/commit/70856f6b055d6d149ee1edc703a5c2acf451be4a) Thanks [@firtoz](https://github.com/firtoz)! - Fix wrangler json finding
|
|
8
|
+
|
|
9
|
+
## 1.3.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`07b8aec`](https://github.com/firtoz/fullstack-toolkit/commit/07b8aecc1e3ecde6ed497965c2c40770b85a341d) Thanks [@firtoz](https://github.com/firtoz)! - Use bun for cf-typegen instead of node
|
|
14
|
+
|
|
3
15
|
## 1.3.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/package.json
CHANGED
package/src/cf-typegen.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
2
|
import { execSync } from "node:child_process";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
@@ -38,10 +38,13 @@ function findGitRoot(startPath: string): string | null {
|
|
|
38
38
|
function findAllWranglerConfigs(gitRoot: string): string[] {
|
|
39
39
|
try {
|
|
40
40
|
// Use git ls-files to find all tracked wrangler configs
|
|
41
|
-
const output = execSync(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
const output = execSync(
|
|
42
|
+
'git ls-files "**/wrangler.json" "**/wrangler.jsonc"',
|
|
43
|
+
{
|
|
44
|
+
cwd: gitRoot,
|
|
45
|
+
encoding: "utf8",
|
|
46
|
+
},
|
|
47
|
+
);
|
|
45
48
|
|
|
46
49
|
return output
|
|
47
50
|
.trim()
|