silgi 0.41.50 → 0.41.51
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/cli/build.mjs +5 -0
- package/dist/cli/index.mjs +1 -1
- package/dist/types/index.d.mts +1 -0
- package/package.json +1 -1
package/dist/cli/build.mjs
CHANGED
|
@@ -1576,6 +1576,11 @@ async function generateApp(app, options = {}) {
|
|
|
1576
1576
|
post: []
|
|
1577
1577
|
};
|
|
1578
1578
|
for (const template of app.templates) {
|
|
1579
|
+
if (template.watch === false) {
|
|
1580
|
+
if (Array.isArray(app.options.watchOptions.ignored)) {
|
|
1581
|
+
app.options.watchOptions.ignored.push(`!${template.dst || template.src}`);
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1579
1584
|
if (options.filter && !options.filter(template)) {
|
|
1580
1585
|
continue;
|
|
1581
1586
|
}
|
package/dist/cli/index.mjs
CHANGED
package/dist/types/index.d.mts
CHANGED
|
@@ -848,6 +848,7 @@ interface SilgiTemplate<Options = TemplateDefaultOptions> {
|
|
|
848
848
|
/** Write to filesystem */
|
|
849
849
|
write?: boolean;
|
|
850
850
|
skipIfExists?: boolean;
|
|
851
|
+
watch?: false;
|
|
851
852
|
}
|
|
852
853
|
interface ResolvedSilgiTemplate<Options = TemplateDefaultOptions> extends SilgiTemplate<Options> {
|
|
853
854
|
filename: string;
|