@marko/type-check 1.1.5 → 1.1.6

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 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -46,6 +46,7 @@ var getCanonicalFileName = import_tsserverlibrary.default.sys.useCaseSensitiveFi
46
46
  var fsPathReg = /^(?:[./\\]|[A-Z]:)/i;
47
47
  var modulePartsReg = /^((?:@(?:[^/]+)\/)?(?:[^/]+))(.*)$/;
48
48
  var isRemapExtensionReg = /\.ts$/;
49
+ var isSourceMapExtensionReg = /\.map$/;
49
50
  var skipRemapExtensionsReg = /\.(?:[cm]?jsx?|json|marko|css|less|sass|scss|styl|stylus|pcss|postcss|sss|a?png|jpe?g|jfif|pipeg|pjp|gif|svg|ico|web[pm]|avif|mp4|ogg|mp3|wav|flac|aac|opus|woff2?|eot|[ot]tf|webmanifest|pdf|txt)$/;
50
51
  var extractCache = /* @__PURE__ */ new WeakMap();
51
52
  var requiredTSCompilerOptions = {
@@ -274,6 +275,8 @@ function run(opts) {
274
275
  writeFile = (fileName, _text, writeByteOrderMark, onError, sourceFiles, data) => {
275
276
  const processor = (sourceFiles == null ? void 0 : sourceFiles.length) === 1 && getProcessor(sourceFiles[0].fileName) || void 0;
276
277
  if (processor) {
278
+ if (isSourceMapExtensionReg.test(fileName))
279
+ return;
277
280
  const [sourceFile] = sourceFiles;
278
281
  const processorExt = (0, import_language_tools.getExt)(sourceFile.fileName);
279
282
  const inDtsExt = processorExt + import_tsserverlibrary.default.Extension.Dts;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/type-check",
3
3
  "description": "A CLI to type check Marko projects",
4
- "version": "1.1.5",
4
+ "version": "1.1.6",
5
5
  "bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
6
6
  "dependencies": {
7
7
  "@babel/code-frame": "^7.23.5",