@xylabs/ts-scripts-yarn3 7.4.7 → 7.4.9
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/actions/deplint/checkPackage/checkPackage.mjs +3 -2
- package/dist/actions/deplint/checkPackage/checkPackage.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/index.mjs +3 -2
- package/dist/actions/deplint/checkPackage/index.mjs.map +1 -1
- package/dist/actions/deplint/deplint.mjs +3 -2
- package/dist/actions/deplint/deplint.mjs.map +1 -1
- package/dist/actions/deplint/getExternalImportsFromFiles.mjs +3 -2
- package/dist/actions/deplint/getExternalImportsFromFiles.mjs.map +1 -1
- package/dist/actions/deplint/getImportsFromFile.mjs +3 -2
- package/dist/actions/deplint/getImportsFromFile.mjs.map +1 -1
- package/dist/actions/deplint/index.mjs +3 -2
- package/dist/actions/deplint/index.mjs.map +1 -1
- package/dist/actions/index.mjs +10 -3
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/package/compile/compile.mjs +7 -1
- package/dist/actions/package/compile/compile.mjs.map +1 -1
- package/dist/actions/package/compile/index.mjs +7 -1
- package/dist/actions/package/compile/index.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsc.mjs +7 -1
- package/dist/actions/package/compile/packageCompileTsc.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs +7 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
- package/dist/actions/package/index.mjs +7 -1
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/recompile.mjs +7 -1
- package/dist/actions/package/recompile.mjs.map +1 -1
- package/dist/bin/package/build-only.mjs +7 -1
- package/dist/bin/package/build-only.mjs.map +1 -1
- package/dist/bin/package/build.mjs +7 -1
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +7 -1
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +7 -1
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +7 -1
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +7 -1
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/xy.mjs +3 -2
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.mjs +10 -3
- package/dist/index.mjs.map +1 -1
- package/dist/xy/index.mjs +3 -2
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +3 -2
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyLintCommands.mjs +3 -2
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +2 -2
package/dist/actions/index.mjs
CHANGED
|
@@ -859,9 +859,10 @@ function getImportsFromFile(filePath, importPaths, typeImportPaths) {
|
|
|
859
859
|
} else if (ts.isCallExpression(node) && node.expression.kind === ts.SyntaxKind.ImportKeyword) {
|
|
860
860
|
const [arg] = node.arguments;
|
|
861
861
|
if (ts.isStringLiteral(arg)) {
|
|
862
|
-
|
|
863
|
-
imports.push(trimmed);
|
|
862
|
+
imports.push(arg.text);
|
|
864
863
|
}
|
|
864
|
+
} else if (ts.isCallExpression(node) && ts.isIdentifier(node.expression) && node.expression.text === "require" && node.arguments.length > 0 && ts.isStringLiteral(node.arguments[0])) {
|
|
865
|
+
imports.push(node.arguments[0].text);
|
|
865
866
|
}
|
|
866
867
|
ts.forEachChild(node, visit);
|
|
867
868
|
}
|
|
@@ -1826,7 +1827,13 @@ var packageCompileTsc = (platform, entries, srcDir = "src", outDir = "dist", com
|
|
|
1826
1827
|
);
|
|
1827
1828
|
console.error(formattedDiagnostics);
|
|
1828
1829
|
}
|
|
1829
|
-
|
|
1830
|
+
const nonEmitPatterns = [".stories.", "/stories/", ".spec.", "/spec/", ".example."];
|
|
1831
|
+
program.emit(void 0, (fileName, text, writeByteOrderMark) => {
|
|
1832
|
+
if (nonEmitPatterns.some((pattern) => fileName.includes(pattern))) {
|
|
1833
|
+
return;
|
|
1834
|
+
}
|
|
1835
|
+
ts2.sys.writeFile(fileName, text, writeByteOrderMark);
|
|
1836
|
+
});
|
|
1830
1837
|
return diagnostics.reduce((acc, diag) => acc + (diag.category === DiagnosticCategory.Error ? 1 : 0), 0);
|
|
1831
1838
|
}
|
|
1832
1839
|
return 0;
|