@trpc/upgrade 11.0.1 → 11.0.2-canary.5

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/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  run locally with source files
2
2
 
3
3
  ```sh
4
- DEV=1 pnpx tsx path/to/cli.ts
4
+ DEV=1 pnpx tsx path/to/bin/index.ts
5
5
 
6
6
  # example
7
- cd examples/minimal-react/client && DEV=1 pnpx tsx ../../../packages/upgrade/src/bin/cli.ts --force --skipTanstackQuery --verbose
7
+ cd examples/minimal-react/client && DEV=1 pnpx tsx ../../../packages/upgrade/src/bin/index.ts --force --skipTanstackQuery --verbose
8
8
  ```
9
9
 
10
10
  or compiled
@@ -25,4 +25,3 @@ A test is a composite of up to 4 files:
25
25
  - `myTest.snap.tsx` stores the output of the transform using standard vitest snapshot testing
26
26
  - `myTest.trpc.tsx` (Optional) stores your trpc appRouter config and test server
27
27
  - `myTest.spec.tsx` (Optional but recommended) a function which will test both the input and transformed components
28
- -
package/dist/bin.js CHANGED
@@ -9,7 +9,7 @@ import { exec } from 'node:child_process';
9
9
  import { promisify } from 'node:util';
10
10
  import __node_cjsModule from 'node:module';
11
11
 
12
- var version = "11.0.1";
12
+ var version = "11.0.2-canary.5+f6efa4791";
13
13
 
14
14
  function getProgram() {
15
15
  const configFile = ts.findConfigFile(process.cwd(), (filepath)=>ts.sys.fileExists(filepath));
@@ -105,7 +105,16 @@ async function assertCleanGitTree() {
105
105
  }
106
106
  }
107
107
  async function filterIgnored(files) {
108
- const { stdout } = await execa('git check-ignore **/*');
108
+ let stdout = '';
109
+ let stderr = '';
110
+ try {
111
+ const result = await execa('git check-ignore **/*');
112
+ stdout = result.stdout;
113
+ stderr = result.stderr;
114
+ } catch (error) {
115
+ log.error('Error executing git check-ignore:', error);
116
+ stdout = '';
117
+ }
109
118
  const ignores = stdout.split('\n');
110
119
  if (process.env['VERBOSE']) {
111
120
  log.info(`cwd: ${process.cwd()}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/upgrade",
3
- "version": "11.0.1",
3
+ "version": "11.0.2-canary.5+f6efa4791",
4
4
  "description": "Upgrade scripts for tRPC",
5
5
  "author": "juliusmarminge",
6
6
  "license": "MIT",
@@ -39,10 +39,10 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@tanstack/react-query": "^5.67.1",
42
- "@trpc/client": "11.0.1",
43
- "@trpc/react-query": "11.0.1",
44
- "@trpc/server": "11.0.1",
45
- "@trpc/tanstack-react-query": "11.0.1",
42
+ "@trpc/client": "11.0.2-canary.5+f6efa4791",
43
+ "@trpc/react-query": "11.0.2-canary.5+f6efa4791",
44
+ "@trpc/server": "11.0.2-canary.5+f6efa4791",
45
+ "@trpc/tanstack-react-query": "11.0.2-canary.5+f6efa4791",
46
46
  "@types/jscodeshift": "0.12.0",
47
47
  "@types/node": "^22.13.5",
48
48
  "bunchee": "6.5.0",
@@ -56,5 +56,5 @@
56
56
  "funding": [
57
57
  "https://trpc.io/sponsor"
58
58
  ],
59
- "gitHead": "662da0bb0a2766125e3f7eced3576f05a850a069"
59
+ "gitHead": "f6efa479190996c22bc1e541fdb1ad6a9c06f5b1"
60
60
  }
package/src/lib/git.ts CHANGED
@@ -14,7 +14,17 @@ export async function assertCleanGitTree() {
14
14
  }
15
15
 
16
16
  export async function filterIgnored(files: readonly SourceFile[]) {
17
- const { stdout } = await execa('git check-ignore **/*');
17
+ let stdout = '';
18
+ let stderr = '';
19
+ try {
20
+ const result = await execa('git check-ignore **/*');
21
+ stdout = result.stdout;
22
+ stderr = result.stderr;
23
+ } catch (error) {
24
+ log.error('Error executing git check-ignore:', error);
25
+ stdout = '';
26
+ }
27
+
18
28
  const ignores = stdout.split('\n');
19
29
 
20
30
  if (process.env['VERBOSE']) {