@nhtio/vite-plugins 0.1.0-master-830ce62d → 0.1.0-master-58153a44

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/index.d.ts CHANGED
@@ -50,8 +50,10 @@ export declare const dts: (packageJson: PackageJson, external: Array<string | Re
50
50
  * (e.g., `bundled_vendor_name.d.ts`) and referenced from your main declarations, rather than
51
51
  * being inlined.
52
52
  *
53
- * 4. **Path Alias Resolution**: All import/export paths are resolved to relative paths, eliminating
54
- * the need for consumers to configure `paths` in their `tsconfig.json`.
53
+ * 4. **Path Alias Resolution**: All import/export paths are resolved to relative paths by default,
54
+ * eliminating the need for consumers to configure `paths` in their `tsconfig.json`. Set
55
+ * `internalImports: 'subpath'` to emit package-private `#types/...` references and a
56
+ * `dts-imports.json` manifest for the published package's `imports` field.
55
57
  *
56
58
  * ## Pre-Rolled vs Bundled Dependencies
57
59
  *
@@ -106,7 +108,10 @@ export declare const dts: (packageJson: PackageJson, external: Array<string | Re
106
108
  * preRolledDependencies: ['@nhtio/encoder'],
107
109
  * // Custom paths
108
110
  * tsConfigJsonPath: './tsconfig.build.json',
109
- * packageJsonPath: './package.json'
111
+ * packageJsonPath: './package.json',
112
+ * // Emits #types/... references plus dts-imports.json for package.json imports.
113
+ * internalImports: 'subpath',
114
+ * subpathPrefix: '#types'
110
115
  * })
111
116
  * ]
112
117
  * })
@@ -156,6 +161,16 @@ declare interface Options {
156
161
  * If the dependency is not already included in `bundledDependencies`, it will be treated as if it were.
157
162
  */
158
163
  preRolledDependencies?: Array<string | RegExp>;
164
+ /**
165
+ * Controls how references to declarations emitted by this package are written. `relative` preserves the legacy extensionless relative paths; `subpath` uses package-private imports.
166
+ * @default 'relative'
167
+ */
168
+ internalImports?: 'relative' | 'subpath';
169
+ /**
170
+ * Package-private import prefix used when `internalImports` is `subpath`. It must start with `#`, not end in `/`, and not contain `*`.
171
+ * @default '#types'
172
+ */
173
+ subpathPrefix?: string;
159
174
  /**
160
175
  * Activate additional debug output information
161
176
  */
@@ -189,3 +204,10 @@ declare interface PackageJson {
189
204
  export declare const version: string;
190
205
 
191
206
  export { }
207
+
208
+
209
+ declare module 'fixture-external' {
210
+ interface External {
211
+ augmented: string;
212
+ }
213
+ }
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { dts } from "./dts.mjs";
2
- import { d } from "./index-C3j0_U_i.mjs";
3
- const version = "0.1.0-master-830ce62d";
2
+ import { d } from "./index-D70JB0pM.mjs";
3
+ const version = "0.1.0-master-58153a44";
4
4
  export {
5
5
  dts,
6
6
  d as dtsComplex,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nhtio/vite-plugins",
3
- "version": "0.1.0-master-830ce62d",
3
+ "version": "0.1.0-master-58153a44",
4
4
  "description": "Preconfigured Commonly Used Vite Plugins",
5
5
  "keywords": [],
6
6
  "author": "Jak Giveon <jak@nht.io>",
@@ -31,6 +31,6 @@
31
31
  "types": "./dts_complex.d.ts"
32
32
  }
33
33
  },
34
- "packageManager": "pnpm@10.8.0+sha512.0e82714d1b5b43c74610193cb20734897c1d00de89d0e18420aebc5977fa13d780a9cb05734624e81ebd81cc876cd464794850641c48b9544326b5622ca29971",
34
+ "packageManager": "pnpm@11.1.3",
35
35
  "type": "module"
36
36
  }