@evobug_com/safe-ts-transform 0.4.0 → 0.5.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.
- package/bun-plugin.mjs +1 -1
- package/index.mjs +1 -1
- package/package.json +3 -3
package/bun-plugin.mjs
CHANGED
|
@@ -110,7 +110,7 @@ export function safeTsBun(options = {}) {
|
|
|
110
110
|
const file = args.path;
|
|
111
111
|
const code = readFileSync(file, "utf8");
|
|
112
112
|
const loader = file.endsWith(".tsx") ? "tsx" : "ts";
|
|
113
|
-
if (check) {
|
|
113
|
+
if (check !== false) {
|
|
114
114
|
checker ??= new (require("@evobug_com/safe-ts-native").Checker)(root);
|
|
115
115
|
const problems = checker.checkFile(file, code);
|
|
116
116
|
if (problems.length > 0) {
|
package/index.mjs
CHANGED
|
@@ -230,7 +230,7 @@ export function safeTs(options = {}) {
|
|
|
230
230
|
return null;
|
|
231
231
|
}
|
|
232
232
|
stats.files++;
|
|
233
|
-
if (check) {
|
|
233
|
+
if (check !== false) {
|
|
234
234
|
checker ??= new native.Checker(root, { aliases });
|
|
235
235
|
const problems = checker.checkFile(file, code);
|
|
236
236
|
stats.problems += problems.length;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evobug_com/safe-ts-transform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "SAFE-TS build-time transform: a Vite/Rolldown/Rollup plugin, a Node loader and a Bun plugin that rewrite q(), match(), parseJson<T>(), loops and @inline, and run the SAFE-TS checks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"safe-ts",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"node": ">=22.18.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@evobug_com/safe-ts-native": "0.
|
|
50
|
+
"@evobug_com/safe-ts-native": "0.5.1",
|
|
51
51
|
"magic-string": "^1.4.5"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@evobug_com/safe-ts-std": "^0.
|
|
54
|
+
"@evobug_com/safe-ts-std": "^0.5.1",
|
|
55
55
|
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|