@marko/type-check 1.1.7 → 1.2.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/dist/cli.js +4 -8
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -269,14 +269,12 @@ function run(opts) {
|
|
|
269
269
|
if (_writeFile) {
|
|
270
270
|
const typeChecker = program.getTypeChecker();
|
|
271
271
|
const printer = import_tsserverlibrary.default.createPrinter({
|
|
272
|
-
noEmitHelpers: true
|
|
273
|
-
removeComments: true
|
|
272
|
+
noEmitHelpers: true
|
|
274
273
|
});
|
|
275
274
|
writeFile = (fileName, _text, writeByteOrderMark, onError, sourceFiles, data) => {
|
|
276
275
|
const processor = (sourceFiles == null ? void 0 : sourceFiles.length) === 1 && getProcessor(sourceFiles[0].fileName) || void 0;
|
|
277
276
|
if (processor) {
|
|
278
|
-
if (isSourceMapExtensionReg.test(fileName))
|
|
279
|
-
return;
|
|
277
|
+
if (isSourceMapExtensionReg.test(fileName)) return;
|
|
280
278
|
const [sourceFile] = sourceFiles;
|
|
281
279
|
const processorExt = (0, import_language_tools.getExt)(sourceFile.fileName);
|
|
282
280
|
const inDtsExt = processorExt + import_tsserverlibrary.default.Extension.Dts;
|
|
@@ -293,8 +291,7 @@ function run(opts) {
|
|
|
293
291
|
const isDts = inExt === inDtsExt;
|
|
294
292
|
let outFileName = fileName;
|
|
295
293
|
if ((0, import_language_tools.isDefinitionFile)(sourceFile.fileName)) {
|
|
296
|
-
if (!isDts)
|
|
297
|
-
return;
|
|
294
|
+
if (!isDts) return;
|
|
298
295
|
outFileName = fileName.slice(0, -inExt.length) + processorExt;
|
|
299
296
|
} else {
|
|
300
297
|
if (isDts && program.getSourceFile(
|
|
@@ -373,8 +370,7 @@ function run(opts) {
|
|
|
373
370
|
void 0,
|
|
374
371
|
extraExtensions
|
|
375
372
|
);
|
|
376
|
-
if (!parsedCommandLine)
|
|
377
|
-
return;
|
|
373
|
+
if (!parsedCommandLine) return;
|
|
378
374
|
const finalRootNames = new Set(parsedCommandLine.fileNames);
|
|
379
375
|
for (const name in processors) {
|
|
380
376
|
const rootNames = (_b = (_a = processors[name]).getRootNames) == null ? void 0 : _b.call(_a);
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/type-check",
|
|
3
3
|
"description": "A CLI to type check Marko projects",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@babel/code-frame": "^7.
|
|
8
|
-
"@luxass/strip-json-comments": "^1.2
|
|
9
|
-
"@marko/language-tools": "^2.
|
|
7
|
+
"@babel/code-frame": "^7.25.7",
|
|
8
|
+
"@luxass/strip-json-comments": "^1.3.2",
|
|
9
|
+
"@marko/language-tools": "^2.4.0",
|
|
10
10
|
"arg": "^5.0.2",
|
|
11
11
|
"kleur": "^4.1.5",
|
|
12
|
-
"typescript": "^5.
|
|
12
|
+
"typescript": "^5.6.3"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/babel__code-frame": "^7.0.6"
|