@reliverse/dler 1.7.6 → 1.7.7

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.
@@ -1,5 +1,5 @@
1
1
  import { endPrompt, startPrompt } from "@reliverse/rempts";
2
- const version = "1.7.6";
2
+ const version = "1.7.7";
3
3
  export async function showStartPrompt(isDev) {
4
4
  await startPrompt({
5
5
  titleColor: "inverse",
@@ -158,91 +158,102 @@ function generateConfig(isDev, pkgDescription) {
158
158
  // libPubRegistry: "npm-jsr",
159
159
  // },
160
160
  }`;
161
- const configTemplate = `${importDefineConfigStatement}
162
- /**
163
- * Reliverse Bundler Configuration
164
- * Hover over a field to see more details
165
- * @see https://github.com/reliverse/dler
166
- */
167
- export default defineConfig({
168
- // Bump configuration
169
- bumpDisable: ${DEFAULT_CONFIG.bumpDisable},
170
- bumpFilter: ${getBumpFilter(isDev)},
171
- bumpMode: "${DEFAULT_CONFIG.bumpMode}",
172
- // Common configuration
173
- commonPubPause: ${pausePublishValue},
174
- commonPubRegistry: "${registryValue}",
175
- commonVerbose: ${verboseValue},
176
- // Core configuration
177
- coreBuildOutDir: "${DEFAULT_CONFIG.coreBuildOutDir}",
178
- coreDeclarations: ${DEFAULT_CONFIG.coreDeclarations},
179
- coreDescription: ${JSON.stringify(coreDescriptionValue)},
180
- coreEntryFile: "${DEFAULT_CONFIG.coreEntryFile}",
181
- coreEntrySrcDir: "${DEFAULT_CONFIG.coreEntrySrcDir}",
182
- ${coreIsCLI}
183
- // JSR-only config
184
- distJsrAllowDirty: ${DEFAULT_CONFIG.distJsrAllowDirty},
185
- distJsrBuilder: "${DEFAULT_CONFIG.distJsrBuilder}",
186
- distJsrDirName: "${DEFAULT_CONFIG.distJsrDirName}",
187
- distJsrDryRun: ${DEFAULT_CONFIG.distJsrDryRun},
188
- distJsrFailOnWarn: ${DEFAULT_CONFIG.distJsrFailOnWarn},
189
- distJsrGenTsconfig: ${DEFAULT_CONFIG.distJsrGenTsconfig},
190
- distJsrOutFilesExt: "${DEFAULT_CONFIG.distJsrOutFilesExt}",
191
- distJsrSlowTypes: ${DEFAULT_CONFIG.distJsrSlowTypes},
192
- // NPM-only config
193
- distNpmBuilder: "${DEFAULT_CONFIG.distNpmBuilder}",
194
- distNpmDirName: "${DEFAULT_CONFIG.distNpmDirName}",
195
- distNpmOutFilesExt: "${DEFAULT_CONFIG.distNpmOutFilesExt}",
196
- // Libraries Dler Plugin
197
- // Publish specific dirs as separate packages
198
- // This feature is experimental at the moment
199
- // Please commit your changes before using it
200
- libsActMode: "${libsActModeValue}",
201
- libsDirDist: "${DEFAULT_CONFIG.libsDirDist}",
202
- libsDirSrc: "${DEFAULT_CONFIG.libsDirSrc}",
203
- libsList: ${libsObject},
204
- // @reliverse/relinka logger setup
205
- logsFileName: "${DEFAULT_CONFIG.logsFileName}",
206
- logsFreshFile: ${DEFAULT_CONFIG.logsFreshFile},
207
- // Specifies what resources to send to npm and jsr registries.
208
- // coreBuildOutDir (e.g. "bin") dir is automatically included.
209
- // The following is also included if publishArtifacts is {}:
210
- // - global: ["package.json", "README.md", "LICENSE"]
211
- // - dist-jsr,dist-libs/jsr: ["jsr.json"]
212
- publishArtifacts: ${getPublishArtifacts(isDev)},
213
- // Dependency filtering
214
- // Global is always applied
215
- filterDepsPatterns: ${getFilterDepsPatterns(isDev)},
216
- // Build setup
217
- // transpileAlias: {},
218
- // transpileClean: true,
219
- // transpileEntries: [],
220
- transpileEsbuild: "${DEFAULT_CONFIG.transpileEsbuild}",
221
- // transpileExternals: [],
222
- transpileFailOnWarn: ${DEFAULT_CONFIG.transpileFailOnWarn},
223
- transpileFormat: "${DEFAULT_CONFIG.transpileFormat}",
224
- transpileMinify: ${DEFAULT_CONFIG.transpileMinify},
225
- // transpileParallel: false,
226
- transpilePublicPath: "${DEFAULT_CONFIG.transpilePublicPath}",
227
- // transpileReplace: {},
228
- // transpileRollup: {
229
- // alias: {},
230
- // commonjs: {},
231
- // dts: {},
232
- // esbuild: {},
233
- // json: {},
234
- // replace: {},
235
- // resolve: {},
236
- // },
237
- // transpileShowOutLog: false,
238
- transpileSourcemap: "${DEFAULT_CONFIG.transpileSourcemap}",
239
- transpileSplitting: ${DEFAULT_CONFIG.transpileSplitting},
240
- transpileStub: ${DEFAULT_CONFIG.transpileStub},
241
- // transpileStubOptions: { jiti: {} },
242
- transpileTarget: "${DEFAULT_CONFIG.transpileTarget}",
243
- transpileWatch: ${DEFAULT_CONFIG.transpileWatch},
244
- // transpileWatchOptions: undefined,
245
- });
246
- `;
161
+ const configTemplate = [
162
+ importDefineConfigStatement,
163
+ "",
164
+ "/**",
165
+ " * Reliverse Bundler Configuration",
166
+ " * Hover over a field to see more details",
167
+ " * @see https://github.com/reliverse/dler",
168
+ " */",
169
+ "export default defineConfig({",
170
+ " // Bump configuration",
171
+ " bumpDisable: " + DEFAULT_CONFIG.bumpDisable + ",",
172
+ " bumpFilter: " + getBumpFilter(isDev) + ",",
173
+ ' bumpMode: "' + DEFAULT_CONFIG.bumpMode + '",',
174
+ "",
175
+ " // Common configuration",
176
+ " commonPubPause: " + pausePublishValue + ",",
177
+ ' commonPubRegistry: "' + registryValue + '",',
178
+ " commonVerbose: " + verboseValue + ",",
179
+ "",
180
+ " // Core configuration",
181
+ ' coreBuildOutDir: "' + DEFAULT_CONFIG.coreBuildOutDir + '",',
182
+ " coreDeclarations: " + DEFAULT_CONFIG.coreDeclarations + ",",
183
+ " coreDescription: " + JSON.stringify(coreDescriptionValue) + ",",
184
+ ' coreEntryFile: "' + DEFAULT_CONFIG.coreEntryFile + '",',
185
+ ' coreEntrySrcDir: "' + DEFAULT_CONFIG.coreEntrySrcDir + '",',
186
+ " " + coreIsCLI,
187
+ "",
188
+ " // JSR-only config",
189
+ " distJsrAllowDirty: " + DEFAULT_CONFIG.distJsrAllowDirty + ",",
190
+ ' distJsrBuilder: "' + DEFAULT_CONFIG.distJsrBuilder + '",',
191
+ ' distJsrDirName: "' + DEFAULT_CONFIG.distJsrDirName + '",',
192
+ " distJsrDryRun: " + DEFAULT_CONFIG.distJsrDryRun + ",",
193
+ " distJsrFailOnWarn: " + DEFAULT_CONFIG.distJsrFailOnWarn + ",",
194
+ " distJsrGenTsconfig: " + DEFAULT_CONFIG.distJsrGenTsconfig + ",",
195
+ ' distJsrOutFilesExt: "' + DEFAULT_CONFIG.distJsrOutFilesExt + '",',
196
+ " distJsrSlowTypes: " + DEFAULT_CONFIG.distJsrSlowTypes + ",",
197
+ "",
198
+ " // NPM-only config",
199
+ ' distNpmBuilder: "' + DEFAULT_CONFIG.distNpmBuilder + '",',
200
+ ' distNpmDirName: "' + DEFAULT_CONFIG.distNpmDirName + '",',
201
+ ' distNpmOutFilesExt: "' + DEFAULT_CONFIG.distNpmOutFilesExt + '",',
202
+ "",
203
+ " // Libraries Dler Plugin",
204
+ " // Publish specific dirs as separate packages",
205
+ " // This feature is experimental at the moment",
206
+ " // Please commit your changes before using it",
207
+ ' libsActMode: "' + libsActModeValue + '",',
208
+ ' libsDirDist: "' + DEFAULT_CONFIG.libsDirDist + '",',
209
+ ' libsDirSrc: "' + DEFAULT_CONFIG.libsDirSrc + '",',
210
+ " libsList: " + libsObject + ",",
211
+ "",
212
+ " // @reliverse/relinka logger setup",
213
+ ' logsFileName: "' + DEFAULT_CONFIG.logsFileName + '",',
214
+ " logsFreshFile: " + DEFAULT_CONFIG.logsFreshFile + ",",
215
+ "",
216
+ " // Specifies what resources to send to npm and jsr registries.",
217
+ ' // coreBuildOutDir (e.g. "bin") dir is automatically included.',
218
+ " // The following is also included if publishArtifacts is {}:",
219
+ ' // - global: ["package.json", "README.md", "LICENSE"]',
220
+ ' // - dist-jsr,dist-libs/jsr: ["jsr.json"]',
221
+ " publishArtifacts: " + getPublishArtifacts(isDev) + ",",
222
+ "",
223
+ " // Dependency filtering",
224
+ " // Global is always applied",
225
+ " filterDepsPatterns: " + getFilterDepsPatterns(isDev) + ",",
226
+ "",
227
+ " // Build setup",
228
+ " // transpileAlias: {},",
229
+ " // transpileClean: true,",
230
+ " // transpileEntries: [],",
231
+ ' transpileEsbuild: "' + DEFAULT_CONFIG.transpileEsbuild + '",',
232
+ " // transpileExternals: [],",
233
+ " transpileFailOnWarn: " + DEFAULT_CONFIG.transpileFailOnWarn + ",",
234
+ ' transpileFormat: "' + DEFAULT_CONFIG.transpileFormat + '",',
235
+ " transpileMinify: " + DEFAULT_CONFIG.transpileMinify + ",",
236
+ " // transpileParallel: false,",
237
+ ' transpilePublicPath: "' + DEFAULT_CONFIG.transpilePublicPath + '",',
238
+ " // transpileReplace: {},",
239
+ " // transpileRollup: {",
240
+ " // alias: {},",
241
+ " // commonjs: {},",
242
+ " // dts: {},",
243
+ " // esbuild: {},",
244
+ " // json: {},",
245
+ " // replace: {},",
246
+ " // resolve: {},",
247
+ " // },",
248
+ " // transpileShowOutLog: false,",
249
+ ' transpileSourcemap: "' + DEFAULT_CONFIG.transpileSourcemap + '",',
250
+ " transpileSplitting: " + DEFAULT_CONFIG.transpileSplitting + ",",
251
+ " transpileStub: " + DEFAULT_CONFIG.transpileStub + ",",
252
+ " // transpileStubOptions: { jiti: {} },",
253
+ ' transpileTarget: "' + DEFAULT_CONFIG.transpileTarget + '",',
254
+ " transpileWatch: " + DEFAULT_CONFIG.transpileWatch + ",",
255
+ " // transpileWatchOptions: undefined,",
256
+ "});"
257
+ ].join("\n");
247
258
  return configTemplate;
248
259
  }
package/package.json CHANGED
@@ -39,7 +39,7 @@
39
39
  "license": "MIT",
40
40
  "name": "@reliverse/dler",
41
41
  "type": "module",
42
- "version": "1.7.6",
42
+ "version": "1.7.7",
43
43
  "keywords": [
44
44
  "reliverse",
45
45
  "cli",