@marko/type-check 1.1.5 → 1.1.7
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 +3 -0
- package/package.json +2 -2
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,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/type-check",
|
|
3
3
|
"description": "A CLI to type check Marko projects",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.7",
|
|
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",
|
|
8
8
|
"@luxass/strip-json-comments": "^1.2.0",
|
|
9
|
-
"@marko/language-tools": "^2.2.
|
|
9
|
+
"@marko/language-tools": "^2.2.6",
|
|
10
10
|
"arg": "^5.0.2",
|
|
11
11
|
"kleur": "^4.1.5",
|
|
12
12
|
"typescript": "^5.3.3"
|