@storm-software/projen 0.9.33 → 0.9.34
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 +7 -0
- package/README.md +1 -1
- package/dist/{chunk-VEIIPJHP.js → chunk-XPDENHN2.js} +33 -34
- package/dist/{chunk-K66SNYX5.mjs → chunk-XURR3E6P.mjs} +5 -6
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Projen
|
|
4
4
|
|
|
5
|
+
## [0.9.34](https://github.com/storm-software/storm-ops/releases/tag/projen%400.9.34) (2025-03-18)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([2d7343483](https://github.com/storm-software/storm-ops/commit/2d7343483))
|
|
11
|
+
|
|
5
12
|
## [0.9.33](https://github.com/storm-software/storm-ops/releases/tag/projen%400.9.33) (2025-03-17)
|
|
6
13
|
|
|
7
14
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -2717,15 +2717,14 @@ var resolveOptions = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async
|
|
|
2717
2717
|
}, {})
|
|
2718
2718
|
},
|
|
2719
2719
|
inject: [
|
|
2720
|
-
options.format === "cjs" && options.injectShims ? _chunk3DQG66DJjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") :
|
|
2721
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunk3DQG66DJjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") :
|
|
2722
|
-
]
|
|
2720
|
+
options.format === "cjs" && options.injectShims ? _chunk3DQG66DJjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : void 0,
|
|
2721
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunk3DQG66DJjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
|
|
2722
|
+
].filter(Boolean)
|
|
2723
2723
|
};
|
|
2724
2724
|
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
|
|
2725
|
-
if (options.inject) {
|
|
2726
|
-
|
|
2725
|
+
if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
|
|
2726
|
+
result.inject = _defu2.default.call(void 0, result.inject, options.inject);
|
|
2727
2727
|
}
|
|
2728
|
-
_optionalChain([options, 'access', _126 => _126.inject, 'optionalAccess', _127 => _127.filter, 'call', _128 => _128(Boolean)]);
|
|
2729
2728
|
delete result.entry;
|
|
2730
2729
|
delete result.outputPath;
|
|
2731
2730
|
stopwatch();
|
|
@@ -2851,7 +2850,7 @@ ${formatLogMessage(options)}`, context2.options.config);
|
|
|
2851
2850
|
}
|
|
2852
2851
|
_chunkWTMG7MTKjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
2853
2852
|
async function copyBuildAssets(context2) {
|
|
2854
|
-
if (_optionalChain([context2, 'access',
|
|
2853
|
+
if (_optionalChain([context2, 'access', _126 => _126.result, 'optionalAccess', _127 => _127.errors, 'access', _128 => _128.length]) === 0) {
|
|
2855
2854
|
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
2856
2855
|
const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
|
|
2857
2856
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
@@ -2861,7 +2860,7 @@ async function copyBuildAssets(context2) {
|
|
|
2861
2860
|
}
|
|
2862
2861
|
_chunkWTMG7MTKjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
2863
2862
|
async function reportResults(context2) {
|
|
2864
|
-
if (_optionalChain([context2, 'access',
|
|
2863
|
+
if (_optionalChain([context2, 'access', _129 => _129.result, 'optionalAccess', _130 => _130.errors, 'access', _131 => _131.length]) === 0) {
|
|
2865
2864
|
if (context2.result.warnings.length > 0) {
|
|
2866
2865
|
writeWarning(` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
2867
2866
|
}
|
|
@@ -2962,14 +2961,14 @@ var watch = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (context2, opti
|
|
|
2962
2961
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2963
2962
|
async function esbuildExecutorFn(options, context2, config) {
|
|
2964
2963
|
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
2965
|
-
if (!_optionalChain([context2, 'access',
|
|
2964
|
+
if (!_optionalChain([context2, 'access', _132 => _132.projectsConfigurations, 'optionalAccess', _133 => _133.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _134 => _134.projectsConfigurations, 'access', _135 => _135.projects, 'access', _136 => _136[context2.projectName], 'optionalAccess', _137 => _137.root])) {
|
|
2966
2965
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
2967
2966
|
}
|
|
2968
2967
|
await build3({
|
|
2969
2968
|
...options,
|
|
2970
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
2969
|
+
projectRoot: _optionalChain([context2, 'access', _138 => _138.projectsConfigurations, 'access', _139 => _139.projects, 'optionalAccess', _140 => _140[context2.projectName], 'access', _141 => _141.root]),
|
|
2971
2970
|
projectName: context2.projectName,
|
|
2972
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
2971
|
+
sourceRoot: _optionalChain([context2, 'access', _142 => _142.projectsConfigurations, 'access', _143 => _143.projects, 'optionalAccess', _144 => _144[context2.projectName], 'optionalAccess', _145 => _145.sourceRoot]),
|
|
2973
2972
|
format: options.format,
|
|
2974
2973
|
platform: options.format
|
|
2975
2974
|
});
|
|
@@ -3015,7 +3014,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
3015
3014
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
3016
3015
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
3017
3016
|
async function sizeLimitExecutorFn(options, context2, config) {
|
|
3018
|
-
if (!_optionalChain([context2, 'optionalAccess',
|
|
3017
|
+
if (!_optionalChain([context2, 'optionalAccess', _146 => _146.projectName]) || !_optionalChain([context2, 'access', _147 => _147.projectsConfigurations, 'optionalAccess', _148 => _148.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
3019
3018
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
3020
3019
|
}
|
|
3021
3020
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
@@ -3024,7 +3023,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
3024
3023
|
_esbuild3.default,
|
|
3025
3024
|
_esbuildwhy2.default
|
|
3026
3025
|
], {
|
|
3027
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access',
|
|
3026
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _149 => _149.projectsConfigurations, 'access', _150 => _150.projects, 'access', _151 => _151[context2.projectName], 'optionalAccess', _152 => _152.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _153 => _153.projectsConfigurations, 'access', _154 => _154.projects, 'access', _155 => _155[context2.projectName], 'optionalAccess', _156 => _156.root]), () => ( "./")), "src")))
|
|
3028
3027
|
}).then((result) => {
|
|
3029
3028
|
writeInfo(`\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
3030
3029
|
});
|
|
@@ -3085,7 +3084,7 @@ _chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
|
3085
3084
|
var _jiti = require('jiti');
|
|
3086
3085
|
async function unbuildExecutorFn(options, context2, config) {
|
|
3087
3086
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
3088
|
-
if (!_optionalChain([context2, 'access',
|
|
3087
|
+
if (!_optionalChain([context2, 'access', _157 => _157.projectsConfigurations, 'optionalAccess', _158 => _158.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
3089
3088
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
3090
3089
|
}
|
|
3091
3090
|
if (!context2.projectsConfigurations.projects[context2.projectName].root) {
|
|
@@ -3173,7 +3172,7 @@ var withRunGenerator = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (nam
|
|
|
3173
3172
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
3174
3173
|
config = await getConfig(workspaceRoot3);
|
|
3175
3174
|
}
|
|
3176
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3175
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _159 => _159.hooks, 'optionalAccess', _160 => _160.applyDefaultOptions])) {
|
|
3177
3176
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
3178
3177
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
3179
3178
|
writeDebug("Completed the applyDefaultOptions hook", config);
|
|
@@ -3184,22 +3183,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3184
3183
|
workspaceRoot: tree.root,
|
|
3185
3184
|
config
|
|
3186
3185
|
}, applyWorkspaceBaseTokens);
|
|
3187
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3186
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _161 => _161.hooks, 'optionalAccess', _162 => _162.preProcess])) {
|
|
3188
3187
|
writeDebug("Running the preProcess hook...", config);
|
|
3189
3188
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
3190
3189
|
writeDebug("Completed the preProcess hook", config);
|
|
3191
3190
|
}
|
|
3192
3191
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
3193
3192
|
if (result) {
|
|
3194
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
3193
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _163 => _163.error, 'optionalAccess', _164 => _164.message]) && typeof _optionalChain([result, 'optionalAccess', _165 => _165.error, 'optionalAccess', _166 => _166.message]) === "string" && _optionalChain([result, 'optionalAccess', _167 => _167.error, 'optionalAccess', _168 => _168.name]) && typeof _optionalChain([result, 'optionalAccess', _169 => _169.error, 'optionalAccess', _170 => _170.name]) === "string") {
|
|
3195
3194
|
throw new Error(`The ${name} generator failed to run`, {
|
|
3196
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
3195
|
+
cause: _optionalChain([result, 'optionalAccess', _171 => _171.error])
|
|
3197
3196
|
});
|
|
3198
3197
|
} else if (result.success && result.data) {
|
|
3199
3198
|
return result;
|
|
3200
3199
|
}
|
|
3201
3200
|
}
|
|
3202
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3201
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _172 => _172.hooks, 'optionalAccess', _173 => _173.postProcess])) {
|
|
3203
3202
|
writeDebug("Running the postProcess hook...", config);
|
|
3204
3203
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
3205
3204
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -3368,15 +3367,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3368
3367
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
3369
3368
|
let repository = {
|
|
3370
3369
|
type: "github",
|
|
3371
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
3370
|
+
url: _optionalChain([config, 'optionalAccess', _174 => _174.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _175 => _175.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _176 => _176.namespace]) || _optionalChain([config, 'optionalAccess', _177 => _177.name]) || "repository"}.git`
|
|
3372
3371
|
};
|
|
3373
3372
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3374
3373
|
if (tree.exists("package.json")) {
|
|
3375
3374
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3376
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3375
|
+
if (_optionalChain([packageJson, 'optionalAccess', _178 => _178.repository])) {
|
|
3377
3376
|
repository = packageJson.repository;
|
|
3378
3377
|
}
|
|
3379
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3378
|
+
if (_optionalChain([packageJson, 'optionalAccess', _179 => _179.description])) {
|
|
3380
3379
|
description = packageJson.description;
|
|
3381
3380
|
}
|
|
3382
3381
|
}
|
|
@@ -3431,9 +3430,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3431
3430
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
3432
3431
|
...json,
|
|
3433
3432
|
pnpm: {
|
|
3434
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3433
|
+
..._optionalChain([json, 'optionalAccess', _180 => _180.pnpm]),
|
|
3435
3434
|
overrides: {
|
|
3436
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3435
|
+
..._optionalChain([json, 'optionalAccess', _181 => _181.pnpm, 'optionalAccess', _182 => _182.overrides]),
|
|
3437
3436
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3438
3437
|
}
|
|
3439
3438
|
}
|
|
@@ -3447,10 +3446,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3447
3446
|
]);
|
|
3448
3447
|
if (tree.exists("package.json")) {
|
|
3449
3448
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3450
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3449
|
+
if (_optionalChain([packageJson, 'optionalAccess', _183 => _183.repository])) {
|
|
3451
3450
|
repository = packageJson.repository;
|
|
3452
3451
|
}
|
|
3453
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3452
|
+
if (_optionalChain([packageJson, 'optionalAccess', _184 => _184.description])) {
|
|
3454
3453
|
description = packageJson.description;
|
|
3455
3454
|
}
|
|
3456
3455
|
}
|
|
@@ -3498,24 +3497,24 @@ _chunkWTMG7MTKjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
|
3498
3497
|
function createProjectTsConfigJson(tree, options) {
|
|
3499
3498
|
const tsconfig = {
|
|
3500
3499
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
3501
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3500
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _185 => _185.tsconfigOptions]), () => ( {})),
|
|
3502
3501
|
compilerOptions: {
|
|
3503
3502
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3504
3503
|
outDir: _chunk3DQG66DJjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3505
3504
|
noEmit: true,
|
|
3506
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3505
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _186 => _186.tsconfigOptions, 'optionalAccess', _187 => _187.compilerOptions]), () => ( {}))
|
|
3507
3506
|
},
|
|
3508
3507
|
files: [
|
|
3509
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3508
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _188 => _188.tsconfigOptions, 'optionalAccess', _189 => _189.files]), () => ( []))
|
|
3510
3509
|
],
|
|
3511
3510
|
include: [
|
|
3512
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3511
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _190 => _190.tsconfigOptions, 'optionalAccess', _191 => _191.include]), () => ( [])),
|
|
3513
3512
|
"src/**/*.ts",
|
|
3514
3513
|
"src/**/*.js",
|
|
3515
3514
|
"bin/**/*"
|
|
3516
3515
|
],
|
|
3517
3516
|
exclude: [
|
|
3518
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3517
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _192 => _192.tsconfigOptions, 'optionalAccess', _193 => _193.exclude]), () => ( [])),
|
|
3519
3518
|
"jest.config.ts",
|
|
3520
3519
|
"src/**/*.spec.ts",
|
|
3521
3520
|
"src/**/*.test.ts"
|
|
@@ -3526,8 +3525,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3526
3525
|
_chunkWTMG7MTKjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
3527
3526
|
async function normalizeOptions(tree, options, config) {
|
|
3528
3527
|
let importPath = options.importPath;
|
|
3529
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
3530
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
3528
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _194 => _194.namespace])) {
|
|
3529
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _195 => _195.namespace])}/${options.name}`;
|
|
3531
3530
|
}
|
|
3532
3531
|
if (options.publishable) {
|
|
3533
3532
|
if (!importPath) {
|
|
@@ -3660,7 +3659,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3660
3659
|
name: "StormWorkspaceConfiguration"
|
|
3661
3660
|
});
|
|
3662
3661
|
writeTrace(jsonSchema, config);
|
|
3663
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
3662
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _196 => _196.workspaceRoot]), () => ( findWorkspaceRoot())), _optionalChain([options, 'access', _197 => _197.outputFile, 'optionalAccess', _198 => _198.startsWith, 'call', _199 => _199("./")]) ? "" : "./");
|
|
3664
3663
|
writeTrace(`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
3665
3664
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
3666
3665
|
spaces: 2
|
|
@@ -2718,15 +2718,14 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
2718
2718
|
}, {})
|
|
2719
2719
|
},
|
|
2720
2720
|
inject: [
|
|
2721
|
-
options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") :
|
|
2722
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") :
|
|
2723
|
-
]
|
|
2721
|
+
options.format === "cjs" && options.injectShims ? joinPaths(__dirname, "../assets/cjs_shims.js") : void 0,
|
|
2722
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? joinPaths(__dirname, "../assets/esm_shims.js") : void 0
|
|
2723
|
+
].filter(Boolean)
|
|
2724
2724
|
};
|
|
2725
2725
|
result.plugins = userOptions.plugins ?? getDefaultBuildPlugins(userOptions, result);
|
|
2726
|
-
if (options.inject) {
|
|
2727
|
-
|
|
2726
|
+
if (options.inject && Array.isArray(options.inject) && options.inject.length > 0) {
|
|
2727
|
+
result.inject = defu4(result.inject, options.inject);
|
|
2728
2728
|
}
|
|
2729
|
-
options.inject?.filter(Boolean);
|
|
2730
2729
|
delete result.entry;
|
|
2731
2730
|
delete result.outputPath;
|
|
2732
2731
|
stopwatch();
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-3Y6AMHJ5.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkXPDENHN2js = require('./chunk-XPDENHN2.js');
|
|
5
5
|
require('./chunk-3DQG66DJ.js');
|
|
6
6
|
require('./chunk-WTMG7MTK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunkXPDENHN2js.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkZ2UXMCUYjs = require('./chunk-Z2UXMCUY.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXPDENHN2js = require('./chunk-XPDENHN2.js');
|
|
8
8
|
require('./chunk-3DQG66DJ.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -16,10 +16,10 @@ var _chunkWTMG7MTKjs = require('./chunk-WTMG7MTK.js');
|
|
|
16
16
|
// index.ts
|
|
17
17
|
var index_exports = {};
|
|
18
18
|
_chunkWTMG7MTKjs.__export.call(void 0, index_exports, {
|
|
19
|
-
initGeneratorFn: () =>
|
|
19
|
+
initGeneratorFn: () => _chunkXPDENHN2js.initGeneratorFn
|
|
20
20
|
});
|
|
21
21
|
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
_chunkWTMG7MTKjs.__reExport.call(void 0, index_exports, _chunkWTMG7MTKjs.__toESM.call(void 0, _chunkZ2UXMCUYjs.require_components.call(void 0, )));
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.initGeneratorFn =
|
|
25
|
+
exports.initGeneratorFn = _chunkXPDENHN2js.initGeneratorFn;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkXPDENHN2js = require('../../../chunk-XPDENHN2.js');
|
|
5
5
|
require('../../../chunk-3DQG66DJ.js');
|
|
6
6
|
require('../../../chunk-WTMG7MTK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunkXPDENHN2js.generator_default; exports.initGeneratorFn = _chunkXPDENHN2js.initGeneratorFn;
|