@snowtop/ent 0.1.0-alpha160-test1 → 0.1.0-alpha160-test2
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-
|
|
3
|
+
"version": "0.1.0-alpha160-test2",
|
|
4
4
|
"description": "snowtop ent framework",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"memoizee": "^0.4.15",
|
|
21
21
|
"minimist": "^1.2.8",
|
|
22
22
|
"pascal-case": "^3.1.2",
|
|
23
|
+
"patch-package": "^7.0.0",
|
|
23
24
|
"pg": "^8.11.0",
|
|
24
25
|
"prettier": "^2.8.8",
|
|
25
26
|
"snake-case": "^3.0.4",
|
|
@@ -153,25 +153,21 @@ async function captureDynamic(filePath, gqlCapture) {
|
|
|
153
153
|
if (!filePath) {
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
|
-
return
|
|
157
|
-
let
|
|
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
|
-
|
|
165
|
-
args.push("--transpileOnly");
|
|
163
|
+
args = ["--transpileOnly", filePath];
|
|
166
164
|
}
|
|
167
165
|
else {
|
|
168
|
-
|
|
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
|
-
|
|
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 = [];
|