wesl-link 0.6.7 → 0.6.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/bin/wesl-link +2 -2
- package/package.json +6 -11
- package/bin/wesl-packager +0 -1510
package/bin/wesl-link
CHANGED
|
@@ -138,7 +138,7 @@ function assertThat(condition, msg) {
|
|
|
138
138
|
}
|
|
139
139
|
/** when debug testing is enabled, checks whether a condition is true, otherwise throws */
|
|
140
140
|
function assertThatDebug(condition, msg) {
|
|
141
|
-
tracing
|
|
141
|
+
if (tracing) assertThat(condition, msg);
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
144
|
* Useful to validate that all cases are handled,
|
|
@@ -421,7 +421,7 @@ const fnCollect = collectElem("fn", (cc, openElem) => {
|
|
|
421
421
|
};
|
|
422
422
|
fnScope.ifAttribute = filterIfAttributes(attributes)?.[0];
|
|
423
423
|
const mergedScope = headerScope;
|
|
424
|
-
returnScope
|
|
424
|
+
if (returnScope) mergeScope(mergedScope, returnScope);
|
|
425
425
|
mergeScope(mergedScope, bodyScope);
|
|
426
426
|
const filtered = [];
|
|
427
427
|
for (const e of fnScope.contents) if (e === headerScope || e === returnScope) continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wesl-link",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "https://github.com/wgsl-tooling-wg/wesl-js/tree/main/packages/cli",
|
|
6
6
|
"homepage": "https://github.com/wgsl-tooling-wg/wesl-js/tree/main/packages/cli#readme",
|
|
@@ -9,22 +9,17 @@
|
|
|
9
9
|
],
|
|
10
10
|
"bin": "bin/wesl-link",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"wesl-tooling": "0.6.7"
|
|
12
|
+
"yargs": "^17.7.2",
|
|
13
|
+
"wesl": "0.6.9",
|
|
14
|
+
"mini-parse": "0.6.9",
|
|
15
|
+
"wesl-tooling": "0.6.9"
|
|
17
16
|
},
|
|
18
17
|
"devDependencies": {
|
|
19
18
|
"tsdown": "^0.11.12"
|
|
20
19
|
},
|
|
21
20
|
"scripts": {
|
|
22
|
-
"echo": "echo",
|
|
23
21
|
"build": "tsdown",
|
|
24
|
-
"
|
|
25
|
-
"lint": "eslint src",
|
|
26
|
-
"typecheck": "tsc",
|
|
27
|
-
"organize": "organize-imports-cli tsconfig.json",
|
|
22
|
+
"typecheck": "tsgo",
|
|
28
23
|
"test": "vitest",
|
|
29
24
|
"test:once": "vitest run"
|
|
30
25
|
}
|