vite-plugin-dts 0.9.7 → 0.9.8
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.js +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -141283,6 +141283,7 @@ function dtsPlugin(options = {}) {
|
|
|
141283
141283
|
noEmitOnError = false,
|
|
141284
141284
|
skipDiagnostics = true,
|
|
141285
141285
|
logDiagnostics = false,
|
|
141286
|
+
copyDtsFiles = true,
|
|
141286
141287
|
afterDiagnostic = noop,
|
|
141287
141288
|
beforeWriteFile = noop,
|
|
141288
141289
|
afterBuild = noop
|
|
@@ -141400,10 +141401,15 @@ ${import_chalk.default.cyan("[vite:dts]")} Start generate declaration files...`)
|
|
|
141400
141401
|
ignore: ensureArray(exclude != null ? exclude : ["node_modules/**"]).map(normalizeGlob)
|
|
141401
141402
|
});
|
|
141402
141403
|
files.forEach((file) => {
|
|
141403
|
-
includedFileSet.add(dtsRE.test(file) ? file : `${tjsRE.test(file) ? file.replace(tjsRE, "") : file}.d.ts`);
|
|
141404
141404
|
if (dtsRE.test(file)) {
|
|
141405
|
+
if (!copyDtsFiles) {
|
|
141406
|
+
return;
|
|
141407
|
+
}
|
|
141408
|
+
includedFileSet.add(file);
|
|
141405
141409
|
sourceDtsFiles.add(project.addSourceFileAtPath(file));
|
|
141410
|
+
return;
|
|
141406
141411
|
}
|
|
141412
|
+
includedFileSet.add(`${tjsRE.test(file) ? file.replace(tjsRE, "") : file}.d.ts`);
|
|
141407
141413
|
});
|
|
141408
141414
|
if (hasJsVue) {
|
|
141409
141415
|
if (!allowJs) {
|
package/dist/index.mjs
CHANGED
|
@@ -141234,6 +141234,7 @@ function dtsPlugin(options = {}) {
|
|
|
141234
141234
|
noEmitOnError = false,
|
|
141235
141235
|
skipDiagnostics = true,
|
|
141236
141236
|
logDiagnostics = false,
|
|
141237
|
+
copyDtsFiles = true,
|
|
141237
141238
|
afterDiagnostic = noop,
|
|
141238
141239
|
beforeWriteFile = noop,
|
|
141239
141240
|
afterBuild = noop
|
|
@@ -141351,10 +141352,15 @@ ${import_chalk.default.cyan("[vite:dts]")} Start generate declaration files...`)
|
|
|
141351
141352
|
ignore: ensureArray(exclude != null ? exclude : ["node_modules/**"]).map(normalizeGlob)
|
|
141352
141353
|
});
|
|
141353
141354
|
files.forEach((file) => {
|
|
141354
|
-
includedFileSet.add(dtsRE.test(file) ? file : `${tjsRE.test(file) ? file.replace(tjsRE, "") : file}.d.ts`);
|
|
141355
141355
|
if (dtsRE.test(file)) {
|
|
141356
|
+
if (!copyDtsFiles) {
|
|
141357
|
+
return;
|
|
141358
|
+
}
|
|
141359
|
+
includedFileSet.add(file);
|
|
141356
141360
|
sourceDtsFiles.add(project.addSourceFileAtPath(file));
|
|
141361
|
+
return;
|
|
141357
141362
|
}
|
|
141363
|
+
includedFileSet.add(`${tjsRE.test(file) ? file.replace(tjsRE, "") : file}.d.ts`);
|
|
141358
141364
|
});
|
|
141359
141365
|
if (hasJsVue) {
|
|
141360
141366
|
if (!allowJs) {
|
package/package.json
CHANGED