@nhtio/vite-plugins 1.20251212.2 → 1.20261021.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/README.md +43 -0
- package/dts.d.ts +7 -0
- package/dts_complex.d.ts +25 -3
- package/dts_complex.mjs +1 -1
- package/{index-Cbnpkv0N.mjs → index-Crhrknhq.mjs} +90 -5
- package/{index-Cbnpkv0N.mjs.map → index-Crhrknhq.mjs.map} +1 -1
- package/index.d.ts +25 -3
- package/index.mjs +2 -2
- package/package.json +2 -2
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,
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nhtio/vite-plugins",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20261021.0",
|
|
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@
|
|
34
|
+
"packageManager": "pnpm@11.1.3",
|
|
35
35
|
"type": "module"
|
|
36
36
|
}
|