@xnoxs/flux-lang 3.4.2 → 3.4.4
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/CHANGELOG.md +29 -0
- package/README.md +1 -1
- package/dist/flux-cli.js +539 -14
- package/dist/flux.cjs.js +15 -2
- package/dist/flux.esm.js +15 -2
- package/dist/flux.min.js +11 -11
- package/package.json +1 -1
- package/src/config.js +18 -1
- package/src/self/cli.js +836 -1
- package/src/self/pkg.js +78 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xnoxs/flux-lang",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"description": "Flux — A modern language that transpiles to JavaScript. Python-clean syntax, TypeScript-level safety, Rust-inspired pattern matching.",
|
|
5
5
|
"main": "dist/flux.cjs.js",
|
|
6
6
|
"module": "dist/flux.esm.js",
|
package/src/config.js
CHANGED
|
@@ -96,4 +96,21 @@ function defineConfig(config) {
|
|
|
96
96
|
return config;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Minimal glob-pattern matcher (also used by test-runner shim to avoid circular require).
|
|
101
|
+
*/
|
|
102
|
+
function matchIgnore(filePath, patterns) {
|
|
103
|
+
if (!patterns || patterns.length === 0) return false;
|
|
104
|
+
const normalize = p => p.replace(/\\/g, '/');
|
|
105
|
+
const fp = normalize(filePath);
|
|
106
|
+
for (const pattern of patterns) {
|
|
107
|
+
let re = normalize(pattern).replace(/\*\*/g, '\x00DS\x00');
|
|
108
|
+
re = re.replace(/[.+^${}()|[\]\\]/g, '\\$&');
|
|
109
|
+
re = re.replace(/\*/g, '[^/]*');
|
|
110
|
+
re = re.replace(/\x00DS\x00\//g, '(.+/)?').replace(/\x00DS\x00/g, '.*');
|
|
111
|
+
if (new RegExp('(^|/)' + re + '$').test(fp)) return true;
|
|
112
|
+
}
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
module.exports = { loadConfig, mergeConfig, defineConfig, matchIgnore };
|