@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.
|
@@ -158,91 +158,102 @@ function generateConfig(isDev, pkgDescription) {
|
|
|
158
158
|
// libPubRegistry: "npm-jsr",
|
|
159
159
|
// },
|
|
160
160
|
}`;
|
|
161
|
-
const configTemplate =
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
*
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
//
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
//
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
//
|
|
217
|
-
//
|
|
218
|
-
//
|
|
219
|
-
//
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
//
|
|
228
|
-
//
|
|
229
|
-
//
|
|
230
|
-
//
|
|
231
|
-
|
|
232
|
-
//
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
//
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
//
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
//
|
|
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
|
}
|