unplugin-isolated-decl 0.4.0 → 0.4.1
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/core/options.d.cts +5 -5
- package/dist/core/options.d.ts +5 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +8 -8
package/dist/core/options.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { TranspileOptions } from 'typescript';
|
|
2
2
|
import type { FilterPattern } from '@rollup/pluginutils';
|
|
3
|
-
export type Options =
|
|
3
|
+
export type Options = {
|
|
4
4
|
include?: FilterPattern;
|
|
5
5
|
exclude?: FilterPattern;
|
|
6
|
-
enforce?:
|
|
7
|
-
}
|
|
6
|
+
enforce?: 'pre' | 'post' | undefined;
|
|
7
|
+
} & ({transformer?: 'oxc' | 'swc'} | {
|
|
8
8
|
transformer: 'typescript';
|
|
9
9
|
transformOptions?: TranspileOptions;
|
|
10
|
-
})
|
|
11
|
-
type Overwrite<T, U> =
|
|
10
|
+
});
|
|
11
|
+
type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
|
|
12
12
|
export type OptionsResolved = Overwrite<Required<Options>, Pick<Options, 'enforce'>>;
|
|
13
13
|
export declare function resolveOptions(options: Options): OptionsResolved;
|
|
14
14
|
export {};
|
package/dist/core/options.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { TranspileOptions } from 'typescript';
|
|
2
2
|
import type { FilterPattern } from '@rollup/pluginutils';
|
|
3
|
-
export type Options =
|
|
3
|
+
export type Options = {
|
|
4
4
|
include?: FilterPattern;
|
|
5
5
|
exclude?: FilterPattern;
|
|
6
|
-
enforce?:
|
|
7
|
-
}
|
|
6
|
+
enforce?: 'pre' | 'post' | undefined;
|
|
7
|
+
} & ({transformer?: 'oxc' | 'swc'} | {
|
|
8
8
|
transformer: 'typescript';
|
|
9
9
|
transformOptions?: TranspileOptions;
|
|
10
|
-
})
|
|
11
|
-
type Overwrite<T, U> =
|
|
10
|
+
});
|
|
11
|
+
type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
|
|
12
12
|
export type OptionsResolved = Overwrite<Required<Options>, Pick<Options, 'enforce'>>;
|
|
13
13
|
export declare function resolveOptions(options: Options): OptionsResolved;
|
|
14
14
|
export {};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type UnpluginInstance } from 'unplugin';
|
|
2
2
|
import { type Options } from './core/options';
|
|
3
3
|
export type { Options };
|
|
4
|
-
export declare const IsolatedDecl: UnpluginInstance<
|
|
4
|
+
export declare const IsolatedDecl: UnpluginInstance<Options | undefined, false>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type UnpluginInstance } from 'unplugin';
|
|
2
2
|
import { type Options } from './core/options';
|
|
3
3
|
export type { Options };
|
|
4
|
-
export declare const IsolatedDecl: UnpluginInstance<
|
|
4
|
+
export declare const IsolatedDecl: UnpluginInstance<Options | undefined, false>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-isolated-decl",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A blazing-fast tool for generating isolated declarations, powered by Oxc.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@rollup/pluginutils": "^5.1.0",
|
|
84
|
-
"oxc-transform": "^0.
|
|
85
|
-
"unplugin": "^1.
|
|
84
|
+
"oxc-transform": "^0.16.3",
|
|
85
|
+
"unplugin": "^1.11.0"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@swc/core": "^1.6.6",
|
|
@@ -90,14 +90,14 @@
|
|
|
90
90
|
"@sxzz/prettier-config": "^2.0.2",
|
|
91
91
|
"@types/node": "^20.14.9",
|
|
92
92
|
"bumpp": "^9.4.1",
|
|
93
|
-
"esbuild": "^0.
|
|
94
|
-
"eslint": "^9.
|
|
93
|
+
"esbuild": "^0.23.0",
|
|
94
|
+
"eslint": "^9.6.0",
|
|
95
95
|
"fast-glob": "^3.3.2",
|
|
96
96
|
"prettier": "^3.3.2",
|
|
97
97
|
"rollup": "^4.18.0",
|
|
98
|
-
"tsdown": "^0.2.
|
|
99
|
-
"tsx": "^4.
|
|
100
|
-
"typescript": "^5.5.
|
|
98
|
+
"tsdown": "^0.2.3",
|
|
99
|
+
"tsx": "^4.16.0",
|
|
100
|
+
"typescript": "^5.5.3",
|
|
101
101
|
"vite": "^5.3.2",
|
|
102
102
|
"vitest": "^1.6.0"
|
|
103
103
|
},
|