@gql.tada/cli-utils 1.7.1 → 1.7.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 +7 -0
- package/LICENSE.md +17 -5
- package/dist/chunks/index-chunk.js +25 -20
- package/dist/chunks/index-chunk.js.map +1 -1
- package/dist/chunks/index-chunk.mjs +24 -19
- package/dist/chunks/index-chunk.mjs.map +1 -1
- package/dist/chunks/thread-chunk2.js +23 -16
- package/dist/chunks/thread-chunk2.js.map +1 -1
- package/dist/chunks/thread-chunk2.mjs +47 -40
- package/dist/chunks/thread-chunk2.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @gql.tada/cli-utils
|
|
2
2
|
|
|
3
|
+
## 1.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Retain the import-extension when resolving from a NodeNext or Node16 tsconfig
|
|
8
|
+
Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#481](https://github.com/0no-co/gql.tada/pull/481))
|
|
9
|
+
|
|
3
10
|
## 1.7.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/LICENSE.md
CHANGED
|
@@ -220,7 +220,7 @@ THE SOFTWARE.
|
|
|
220
220
|
|
|
221
221
|
ISC License
|
|
222
222
|
|
|
223
|
-
Copyright (c) 2021
|
|
223
|
+
Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
|
|
224
224
|
|
|
225
225
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
226
226
|
purpose with or without fee is hereby granted, provided that the above
|
|
@@ -272,15 +272,27 @@ THE SOFTWARE.
|
|
|
272
272
|
|
|
273
273
|
## shebang-regex
|
|
274
274
|
|
|
275
|
-
MIT License
|
|
275
|
+
The MIT License (MIT)
|
|
276
276
|
|
|
277
277
|
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
278
278
|
|
|
279
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
279
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
280
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
281
|
+
in the Software without restriction, including without limitation the rights
|
|
282
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
283
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
284
|
+
furnished to do so, subject to the following conditions:
|
|
280
285
|
|
|
281
|
-
The above copyright notice and this permission notice shall be included in
|
|
286
|
+
The above copyright notice and this permission notice shall be included in
|
|
287
|
+
all copies or substantial portions of the Software.
|
|
282
288
|
|
|
283
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
289
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
290
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
291
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
292
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
293
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
294
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
295
|
+
THE SOFTWARE.
|
|
284
296
|
|
|
285
297
|
## sisteransi
|
|
286
298
|
|
|
@@ -5238,14 +5238,19 @@ var programFactory = e => {
|
|
|
5238
5238
|
getDefaultLibFilePath: s.getDefaultLibFilePath(n.options),
|
|
5239
5239
|
...n.options
|
|
5240
5240
|
};
|
|
5241
|
+
var D = !1;
|
|
5241
5242
|
if ("Bundler" in s.ModuleResolutionKind && (c.moduleResolution === s.ModuleResolutionKind.NodeNext || c.moduleResolution === s.ModuleResolutionKind.Node16)) {
|
|
5243
|
+
D = !0;
|
|
5242
5244
|
c.moduleResolution = s.ModuleResolutionKind.Bundler;
|
|
5243
5245
|
}
|
|
5244
|
-
var
|
|
5245
|
-
var
|
|
5246
|
+
var d = createVirtualCompilerHost(i, c, s);
|
|
5247
|
+
var f = {
|
|
5246
5248
|
get projectPath() {
|
|
5247
5249
|
return e.rootPath;
|
|
5248
5250
|
},
|
|
5251
|
+
get wasOriginallyNodeNext() {
|
|
5252
|
+
return D;
|
|
5253
|
+
},
|
|
5249
5254
|
get projectDirectories() {
|
|
5250
5255
|
var t = new Set([ e.rootPath ]);
|
|
5251
5256
|
for (var r of a) {
|
|
@@ -5262,13 +5267,13 @@ var programFactory = e => {
|
|
|
5262
5267
|
l.add(O.dirname(c));
|
|
5263
5268
|
}
|
|
5264
5269
|
for (var D of l) {
|
|
5265
|
-
for (var
|
|
5266
|
-
if (!n.has(
|
|
5267
|
-
n.add(
|
|
5268
|
-
var p = i.readFile(
|
|
5270
|
+
for (var d of i.readDirectory(D, t, [ "**/node_modules" ])) {
|
|
5271
|
+
if (!n.has(d)) {
|
|
5272
|
+
n.add(d);
|
|
5273
|
+
var p = i.readFile(d, "utf8");
|
|
5269
5274
|
if (p) {
|
|
5270
|
-
r.push(
|
|
5271
|
-
fileId:
|
|
5275
|
+
r.push(f.createSourceFile({
|
|
5276
|
+
fileId: d,
|
|
5272
5277
|
sourceText: p
|
|
5273
5278
|
}, s.ScriptKind.External));
|
|
5274
5279
|
}
|
|
@@ -5278,13 +5283,13 @@ var programFactory = e => {
|
|
|
5278
5283
|
return r;
|
|
5279
5284
|
},
|
|
5280
5285
|
addSourceFile(e) {
|
|
5281
|
-
var t = "fileName" in e ? e :
|
|
5282
|
-
|
|
5286
|
+
var t = "fileName" in e ? e : f.createSourceFile(e, s.ScriptKind.TSX);
|
|
5287
|
+
d.updateFile(t);
|
|
5283
5288
|
a.add(t.fileName);
|
|
5284
|
-
return
|
|
5289
|
+
return f;
|
|
5285
5290
|
},
|
|
5286
5291
|
addMappedFile(e, t) {
|
|
5287
|
-
var i = "fileName" in e ? e :
|
|
5292
|
+
var i = "fileName" in e ? e : f.createSourceFile(e, s.ScriptKind.External);
|
|
5288
5293
|
if (t.mappings.length) {
|
|
5289
5294
|
a.delete(i.fileName);
|
|
5290
5295
|
}
|
|
@@ -5295,14 +5300,14 @@ var programFactory = e => {
|
|
|
5295
5300
|
});
|
|
5296
5301
|
r.set(n.sourceFileId, n);
|
|
5297
5302
|
r.set(n.generatedFileId, n);
|
|
5298
|
-
return
|
|
5303
|
+
return f;
|
|
5299
5304
|
},
|
|
5300
5305
|
async addVirtualFiles(e) {
|
|
5301
5306
|
for (var t of e) {
|
|
5302
5307
|
var r = `${t.fileName}.ts`;
|
|
5303
5308
|
var i = await transform(t);
|
|
5304
5309
|
if (i) {
|
|
5305
|
-
|
|
5310
|
+
f.addSourceFile({
|
|
5306
5311
|
fileId: r,
|
|
5307
5312
|
sourceText: i.snapshot
|
|
5308
5313
|
}).addMappedFile(t, {
|
|
@@ -5311,13 +5316,13 @@ var programFactory = e => {
|
|
|
5311
5316
|
});
|
|
5312
5317
|
}
|
|
5313
5318
|
}
|
|
5314
|
-
return
|
|
5319
|
+
return f;
|
|
5315
5320
|
},
|
|
5316
5321
|
resolveModuleName(e, t, r) {
|
|
5317
5322
|
if (!e.startsWith(".")) {
|
|
5318
5323
|
return e;
|
|
5319
5324
|
}
|
|
5320
|
-
var i = s.resolveModuleName(e, t, c,
|
|
5325
|
+
var i = s.resolveModuleName(e, t, c, d.compilerHost);
|
|
5321
5326
|
if (i.resolvedModule) {
|
|
5322
5327
|
var n = i.resolvedModule.resolvedFileName;
|
|
5323
5328
|
var a = O.dirname(r);
|
|
@@ -5327,9 +5332,9 @@ var programFactory = e => {
|
|
|
5327
5332
|
}
|
|
5328
5333
|
return l.replace(/\\/g, "/");
|
|
5329
5334
|
}
|
|
5330
|
-
var
|
|
5335
|
+
var D = O.dirname(t);
|
|
5331
5336
|
var f = O.dirname(r);
|
|
5332
|
-
var p = O.resolve(
|
|
5337
|
+
var p = O.resolve(D, e);
|
|
5333
5338
|
var h = O.relative(f, p);
|
|
5334
5339
|
if (!h.startsWith(".")) {
|
|
5335
5340
|
h = "./" + h;
|
|
@@ -5411,14 +5416,14 @@ var programFactory = e => {
|
|
|
5411
5416
|
})({
|
|
5412
5417
|
virtualMap: r,
|
|
5413
5418
|
projectRoot: e.rootPath,
|
|
5414
|
-
compilerHost:
|
|
5419
|
+
compilerHost: d.compilerHost,
|
|
5415
5420
|
rootNames: [ ...a ],
|
|
5416
5421
|
options: c,
|
|
5417
5422
|
system: i
|
|
5418
5423
|
});
|
|
5419
5424
|
}
|
|
5420
5425
|
};
|
|
5421
|
-
return
|
|
5426
|
+
return f;
|
|
5422
5427
|
};
|
|
5423
5428
|
|
|
5424
5429
|
var resolveDefaultLibsPath = e => {
|