@bamboocss/node 1.37.1 → 1.37.2
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/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +12 -12
package/dist/index.cjs
CHANGED
|
@@ -125,7 +125,7 @@ async function codegen(ctx, ids) {
|
|
|
125
125
|
const limit = pLimit(20);
|
|
126
126
|
if (ctx.config.clean) ctx.output.empty();
|
|
127
127
|
let artifacts = ctx.getArtifacts(ids);
|
|
128
|
-
let
|
|
128
|
+
let hookFiltered = false;
|
|
129
129
|
if (ctx.hooks["codegen:prepare"]) {
|
|
130
130
|
const results = await ctx.hooks["codegen:prepare"]?.({
|
|
131
131
|
changed: ids,
|
|
@@ -133,12 +133,12 @@ async function codegen(ctx, ids) {
|
|
|
133
133
|
});
|
|
134
134
|
if (results) {
|
|
135
135
|
artifacts = results;
|
|
136
|
-
|
|
136
|
+
hookFiltered = true;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
const promises = artifacts.map((artifact) => limit(() => ctx.output.write(artifact)));
|
|
140
140
|
await Promise.allSettled(promises);
|
|
141
|
-
if (
|
|
141
|
+
if (!hookFiltered) ctx.output.prune(ids ? ctx.getArtifacts() : artifacts);
|
|
142
142
|
await ctx.hooks["codegen:done"]?.({ changed: ids });
|
|
143
143
|
return {
|
|
144
144
|
box: ctx.initMessage(),
|
package/dist/index.mjs
CHANGED
|
@@ -111,7 +111,7 @@ async function codegen(ctx, ids) {
|
|
|
111
111
|
const limit = pLimit(20);
|
|
112
112
|
if (ctx.config.clean) ctx.output.empty();
|
|
113
113
|
let artifacts = ctx.getArtifacts(ids);
|
|
114
|
-
let
|
|
114
|
+
let hookFiltered = false;
|
|
115
115
|
if (ctx.hooks["codegen:prepare"]) {
|
|
116
116
|
const results = await ctx.hooks["codegen:prepare"]?.({
|
|
117
117
|
changed: ids,
|
|
@@ -119,12 +119,12 @@ async function codegen(ctx, ids) {
|
|
|
119
119
|
});
|
|
120
120
|
if (results) {
|
|
121
121
|
artifacts = results;
|
|
122
|
-
|
|
122
|
+
hookFiltered = true;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
const promises = artifacts.map((artifact) => limit(() => ctx.output.write(artifact)));
|
|
126
126
|
await Promise.allSettled(promises);
|
|
127
|
-
if (
|
|
127
|
+
if (!hookFiltered) ctx.output.prune(ids ? ctx.getArtifacts() : artifacts);
|
|
128
128
|
await ctx.hooks["codegen:done"]?.({ changed: ids });
|
|
129
129
|
return {
|
|
130
130
|
box: ctx.initMessage(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/node",
|
|
3
|
-
"version": "1.37.
|
|
3
|
+
"version": "1.37.2",
|
|
4
4
|
"description": "The core css bamboo library",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
"postcss": "8.5.26",
|
|
53
53
|
"ts-morph": "28.0.0",
|
|
54
54
|
"ts-pattern": "5.9.0",
|
|
55
|
-
"@bamboocss/config": "1.37.
|
|
56
|
-
"@bamboocss/core": "1.37.
|
|
57
|
-
"@bamboocss/generator": "1.37.
|
|
58
|
-
"@bamboocss/
|
|
59
|
-
"@bamboocss/
|
|
60
|
-
"@bamboocss/plugin-svelte": "1.37.
|
|
61
|
-
"@bamboocss/plugin-vue": "1.37.
|
|
62
|
-
"@bamboocss/reporter": "1.37.
|
|
63
|
-
"@bamboocss/shared": "1.37.
|
|
64
|
-
"@bamboocss/token-dictionary": "1.37.
|
|
65
|
-
"@bamboocss/types": "1.37.
|
|
55
|
+
"@bamboocss/config": "1.37.2",
|
|
56
|
+
"@bamboocss/core": "1.37.2",
|
|
57
|
+
"@bamboocss/generator": "1.37.2",
|
|
58
|
+
"@bamboocss/parser": "1.37.2",
|
|
59
|
+
"@bamboocss/logger": "1.37.2",
|
|
60
|
+
"@bamboocss/plugin-svelte": "1.37.2",
|
|
61
|
+
"@bamboocss/plugin-vue": "1.37.2",
|
|
62
|
+
"@bamboocss/reporter": "1.37.2",
|
|
63
|
+
"@bamboocss/shared": "1.37.2",
|
|
64
|
+
"@bamboocss/token-dictionary": "1.37.2",
|
|
65
|
+
"@bamboocss/types": "1.37.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/fs-extra": "11.0.4",
|