@marko/type-check 1.1.8 → 1.2.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -6
  2. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -274,8 +274,7 @@ function run(opts) {
274
274
  writeFile = (fileName, _text, writeByteOrderMark, onError, sourceFiles, data) => {
275
275
  const processor = (sourceFiles == null ? void 0 : sourceFiles.length) === 1 && getProcessor(sourceFiles[0].fileName) || void 0;
276
276
  if (processor) {
277
- if (isSourceMapExtensionReg.test(fileName))
278
- return;
277
+ if (isSourceMapExtensionReg.test(fileName)) return;
279
278
  const [sourceFile] = sourceFiles;
280
279
  const processorExt = (0, import_language_tools.getExt)(sourceFile.fileName);
281
280
  const inDtsExt = processorExt + import_tsserverlibrary.default.Extension.Dts;
@@ -292,8 +291,7 @@ function run(opts) {
292
291
  const isDts = inExt === inDtsExt;
293
292
  let outFileName = fileName;
294
293
  if ((0, import_language_tools.isDefinitionFile)(sourceFile.fileName)) {
295
- if (!isDts)
296
- return;
294
+ if (!isDts) return;
297
295
  outFileName = fileName.slice(0, -inExt.length) + processorExt;
298
296
  } else {
299
297
  if (isDts && program.getSourceFile(
@@ -372,8 +370,7 @@ function run(opts) {
372
370
  void 0,
373
371
  extraExtensions
374
372
  );
375
- if (!parsedCommandLine)
376
- return;
373
+ if (!parsedCommandLine) return;
377
374
  const finalRootNames = new Set(parsedCommandLine.fileNames);
378
375
  for (const name in processors) {
379
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.1.8",
4
+ "version": "1.2.1",
5
5
  "bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
6
6
  "dependencies": {
7
- "@babel/code-frame": "^7.23.5",
8
- "@luxass/strip-json-comments": "^1.2.0",
9
- "@marko/language-tools": "^2.2.6",
7
+ "@babel/code-frame": "^7.25.7",
8
+ "@luxass/strip-json-comments": "^1.3.2",
9
+ "@marko/language-tools": "^2.4.1",
10
10
  "arg": "^5.0.2",
11
11
  "kleur": "^4.1.5",
12
- "typescript": "^5.3.3"
12
+ "typescript": "^5.6.3"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@types/babel__code-frame": "^7.0.6"