@snowtop/ent 0.1.0-alpha160-test1 → 0.1.0-alpha160-test3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowtop/ent",
3
- "version": "0.1.0-alpha160-test1",
3
+ "version": "0.1.0-alpha160-test3",
4
4
  "description": "snowtop ent framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -8,6 +8,7 @@
8
8
  "example": "examples"
9
9
  },
10
10
  "dependencies": {
11
+ "@snowtop/ts-node": "^0.0.1",
11
12
  "@types/node": "^20.2.5",
12
13
  "camel-case": "^4.1.2",
13
14
  "cosmiconfig": "^8.1.3",
@@ -20,10 +21,10 @@
20
21
  "memoizee": "^0.4.15",
21
22
  "minimist": "^1.2.8",
22
23
  "pascal-case": "^3.1.2",
24
+ "patch-package": "^7.0.0",
23
25
  "pg": "^8.11.0",
24
26
  "prettier": "^2.8.8",
25
27
  "snake-case": "^3.0.4",
26
- "ts-node": "^10.9.1",
27
28
  "tsconfig-paths": "^4.2.0",
28
29
  "tslib": "^2.5.2",
29
30
  "typescript": "^5.0.4",
@@ -153,25 +153,21 @@ async function captureDynamic(filePath, gqlCapture) {
153
153
  if (!filePath) {
154
154
  return;
155
155
  }
156
- return await new Promise((resolve, reject) => {
157
- let cmd = "";
158
- const args = [];
156
+ return new Promise((resolve, reject) => {
157
+ let args = [];
159
158
  const env = {
160
159
  ...process.env,
161
160
  };
162
161
  // really only exists if there's a bug with swc or something. we should almost always be using swc
163
162
  if (process.env.DISABLE_SWC) {
164
- cmd = "ts-node";
165
- args.push("--transpileOnly");
163
+ args = ["--transpileOnly", filePath];
166
164
  }
167
165
  else {
168
- cmd = "node";
166
+ args = ["--swc", filePath];
169
167
  // we seem to get tsconfig-paths by default because child process but not 100% sure...
170
- args.push("-r", "@swc-node/register");
171
168
  env.SWCRC = "true";
172
169
  }
173
- args.push(filePath);
174
- const r = (0, child_process_1.spawn)(cmd, args, {
170
+ const r = (0, child_process_1.spawn)("ts-node", args, {
175
171
  env,
176
172
  });
177
173
  const datas = [];