tsgonest 0.13.5 → 0.15.0

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/migrate.cjs CHANGED
@@ -176870,7 +176870,8 @@ async function main() {
176870
176870
  } catch {
176871
176871
  project = new import_ts_morph.Project({ compilerOptions: { strict: true } });
176872
176872
  }
176873
- for (const pattern of opts.include) project.addSourceFilesAtPaths((0, path.resolve)(cwd, pattern));
176873
+ process.chdir(cwd);
176874
+ for (const pattern of opts.include) project.addSourceFilesAtPaths(pattern);
176874
176875
  const files = project.getSourceFiles();
176875
176876
  if (files.length === 0) {
176876
176877
  console.log("\n No files matched. Try --include 'src/**/*.ts'");
package/bin/tsgonest CHANGED
@@ -24,8 +24,11 @@ function getBinaryPath() {
24
24
  return process.env.TSGONEST_BINARY_PATH;
25
25
  }
26
26
 
27
- // 2. Check for a locally-built binary (development: go build -o packages/core/bin/tsgonest-native)
28
- const localBinary = path.join(__dirname, "tsgonest-native");
27
+ // 2. Check for a locally-built binary (development: just build).
28
+ // On Windows `just build` emits tsgonest.exe; on Unix it emits tsgonest-native.
29
+ const localBinaryName =
30
+ process.platform === "win32" ? "tsgonest.exe" : "tsgonest-native";
31
+ const localBinary = path.join(__dirname, localBinaryName);
29
32
  if (existsSync(localBinary)) {
30
33
  return localBinary;
31
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsgonest",
3
- "version": "0.13.5",
3
+ "version": "0.15.0",
4
4
  "description": "TypeScript compiler with runtime validation, serialization, and OpenAPI generation for NestJS",
5
5
  "keywords": [
6
6
  "typescript",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "jsonc-parser": "^3.3.1",
35
- "@tsgonest/runtime": "0.13.5",
36
- "@tsgonest/types": "0.13.5"
35
+ "@tsgonest/runtime": "0.15.0",
36
+ "@tsgonest/types": "0.15.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "ts-morph": "^27.0.2",
@@ -42,12 +42,12 @@
42
42
  "vitest": "^4.1.0"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@tsgonest/cli-darwin-arm64": "0.13.5",
46
- "@tsgonest/cli-linux-arm64": "0.13.5",
47
- "@tsgonest/cli-linux-x64": "0.13.5",
48
- "@tsgonest/cli-win32-arm64": "0.13.5",
49
- "@tsgonest/cli-darwin-x64": "0.13.5",
50
- "@tsgonest/cli-win32-x64": "0.13.5"
45
+ "@tsgonest/cli-darwin-x64": "0.15.0",
46
+ "@tsgonest/cli-darwin-arm64": "0.15.0",
47
+ "@tsgonest/cli-linux-x64": "0.15.0",
48
+ "@tsgonest/cli-win32-arm64": "0.15.0",
49
+ "@tsgonest/cli-linux-arm64": "0.15.0",
50
+ "@tsgonest/cli-win32-x64": "0.15.0"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "tsdown",