vite-plugin-dts 2.0.2 → 2.1.0

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.cjs CHANGED
@@ -507,7 +507,8 @@ function rollupDeclarationFiles({
507
507
  outputDir,
508
508
  entryPath,
509
509
  fileName,
510
- libFolder
510
+ libFolder,
511
+ bundledPackages
511
512
  }) {
512
513
  const configObjectFullPath = node_path.resolve(root, "api-extractor.json");
513
514
  const packageJsonLookup = new nodeCoreLibrary.PackageJsonLookup();
@@ -519,6 +520,7 @@ function rollupDeclarationFiles({
519
520
  configObject: {
520
521
  projectFolder: root,
521
522
  mainEntryPointFilePath: entryPath,
523
+ bundledPackages,
522
524
  compiler: {
523
525
  overrideTsconfig: {
524
526
  $schema: "http://json.schemastore.org/tsconfig",
@@ -611,6 +613,7 @@ function dtsPlugin(options = {}) {
611
613
  clearPureImport = true,
612
614
  insertTypesEntry = false,
613
615
  rollupTypes = false,
616
+ bundledPackages = [],
614
617
  noEmitOnError = false,
615
618
  skipDiagnostics = false,
616
619
  copyDtsFiles = false,
@@ -954,7 +957,8 @@ export default ${libName}
954
957
  outputDir,
955
958
  entryPath: path,
956
959
  fileName: node_path.basename(path),
957
- libFolder: libFolderPath
960
+ libFolder: libFolderPath,
961
+ bundledPackages
958
962
  });
959
963
  emittedFiles.delete(path);
960
964
  rollupFiles.add(path);
@@ -966,7 +970,8 @@ export default ${libName}
966
970
  outputDir,
967
971
  entryPath: typesPath,
968
972
  fileName: node_path.basename(typesPath),
969
- libFolder: libFolderPath
973
+ libFolder: libFolderPath,
974
+ bundledPackages
970
975
  });
971
976
  emittedFiles.delete(typesPath);
972
977
  rollupFiles.add(typesPath);
package/dist/index.d.ts CHANGED
@@ -103,6 +103,14 @@ interface PluginOptions {
103
103
  * @default false
104
104
  */
105
105
  rollupTypes?: boolean;
106
+ /**
107
+ * Bundled packages for rollup types
108
+ *
109
+ * See https://api-extractor.com/pages/configs/api-extractor_json/#bundledpackages
110
+ *
111
+ * @default []
112
+ */
113
+ bundledPackages?: string[];
106
114
  /**
107
115
  * Whether copy .d.ts source files into outputDir
108
116
  *
package/dist/index.mjs CHANGED
@@ -512,7 +512,8 @@ function rollupDeclarationFiles({
512
512
  outputDir,
513
513
  entryPath,
514
514
  fileName,
515
- libFolder
515
+ libFolder,
516
+ bundledPackages
516
517
  }) {
517
518
  const configObjectFullPath = resolve$1(root, "api-extractor.json");
518
519
  const packageJsonLookup = new PackageJsonLookup();
@@ -524,6 +525,7 @@ function rollupDeclarationFiles({
524
525
  configObject: {
525
526
  projectFolder: root,
526
527
  mainEntryPointFilePath: entryPath,
528
+ bundledPackages,
527
529
  compiler: {
528
530
  overrideTsconfig: {
529
531
  $schema: "http://json.schemastore.org/tsconfig",
@@ -616,6 +618,7 @@ function dtsPlugin(options = {}) {
616
618
  clearPureImport = true,
617
619
  insertTypesEntry = false,
618
620
  rollupTypes = false,
621
+ bundledPackages = [],
619
622
  noEmitOnError = false,
620
623
  skipDiagnostics = false,
621
624
  copyDtsFiles = false,
@@ -959,7 +962,8 @@ export default ${libName}
959
962
  outputDir,
960
963
  entryPath: path,
961
964
  fileName: basename(path),
962
- libFolder: libFolderPath
965
+ libFolder: libFolderPath,
966
+ bundledPackages
963
967
  });
964
968
  emittedFiles.delete(path);
965
969
  rollupFiles.add(path);
@@ -971,7 +975,8 @@ export default ${libName}
971
975
  outputDir,
972
976
  entryPath: typesPath,
973
977
  fileName: basename(typesPath),
974
- libFolder: libFolderPath
978
+ libFolder: libFolderPath,
979
+ bundledPackages
975
980
  });
976
981
  emittedFiles.delete(typesPath);
977
982
  rollupFiles.add(typesPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-dts",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "qmhc",