unplugin-isolated-decl 0.6.7 → 0.7.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/api.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_transformer = require('./transformer-9aaNC01N.cjs');
2
+ const require_transformer = require('./transformer-C4rLQvdl.cjs');
3
3
 
4
4
  exports.oxcTransform = require_transformer.oxcTransform
5
5
  exports.swcTransform = require_transformer.swcTransform
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { oxcTransform, swcTransform, tsTransform } from "./transformer-GSFmnEOV.js";
1
+ import { oxcTransform, swcTransform, tsTransform } from "./transformer-DDte86lZ.js";
2
2
 
3
3
  export { oxcTransform, swcTransform, tsTransform };
@@ -1,5 +1,8 @@
1
1
  import type { FilterPattern } from '@rollup/pluginutils';
2
2
  import type { TranspileOptions } from 'typescript';
3
+ /**
4
+ * Represents the options for the plugin.
5
+ */
3
6
  export type Options = {
4
7
  include?: FilterPattern;
5
8
  exclude?: FilterPattern;
@@ -1,5 +1,8 @@
1
1
  import type { FilterPattern } from '@rollup/pluginutils';
2
2
  import type { TranspileOptions } from 'typescript';
3
+ /**
4
+ * Represents the options for the plugin.
5
+ */
3
6
  export type Options = {
4
7
  include?: FilterPattern;
5
8
  exclude?: FilterPattern;
@@ -3,6 +3,15 @@ export interface TransformResult {
3
3
  code: string;
4
4
  errors: Array<string>;
5
5
  }
6
+ /**
7
+ * Transform isolated declarations with `oxc-transform`.
8
+ */
6
9
  export declare function oxcTransform(id: string, code: string): Promise<TransformResult>;
10
+ /**
11
+ * Transform isolated declarations with `@swc/core`.
12
+ */
7
13
  export declare function swcTransform(id: string, code: string): Promise<TransformResult>;
14
+ /**
15
+ * Transform isolated declarations with `typescript`.
16
+ */
8
17
  export declare function tsTransform(id: string, code: string, transformOptions?: TranspileOptions): Promise<TransformResult>;
@@ -3,6 +3,15 @@ export interface TransformResult {
3
3
  code: string;
4
4
  errors: Array<string>;
5
5
  }
6
+ /**
7
+ * Transform isolated declarations with `oxc-transform`.
8
+ */
6
9
  export declare function oxcTransform(id: string, code: string): Promise<TransformResult>;
10
+ /**
11
+ * Transform isolated declarations with `@swc/core`.
12
+ */
7
13
  export declare function swcTransform(id: string, code: string): Promise<TransformResult>;
14
+ /**
15
+ * Transform isolated declarations with `typescript`.
16
+ */
8
17
  export declare function tsTransform(id: string, code: string, transformOptions?: TranspileOptions): Promise<TransformResult>;
@@ -0,0 +1,2 @@
1
+ export declare function lowestCommonAncestor(...filepaths: string[]): string;
2
+ export declare function stripExt(filename: string): string;
@@ -0,0 +1,2 @@
1
+ export declare function lowestCommonAncestor(...filepaths: string[]): string;
2
+ export declare function stripExt(filename: string): string;
package/dist/esbuild.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- const require_src_index = require('./src_index-tVPRzUWA.cjs');
3
- require('./transformer-9aaNC01N.cjs');
2
+ const require_src = require('./src-C3bhcfQ9.cjs');
3
+ require('./transformer-C4rLQvdl.cjs');
4
4
 
5
5
  //#region src/esbuild.ts
6
- var esbuild_default = require_src_index.IsolatedDecl.esbuild;
6
+ var esbuild_default = require_src.IsolatedDecl.esbuild;
7
7
 
8
8
  //#endregion
9
9
  module.exports = esbuild_default;
@@ -1,3 +1,20 @@
1
+ /**
2
+ * This entry file is for esbuild plugin.
3
+ *
4
+ * @module
5
+ */
1
6
  import { IsolatedDecl } from "./index.js";
7
+ /**
8
+ * Esbuild plugin
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { build } from 'esbuild'
13
+ *
14
+ * build({
15
+ * plugins: [require('unplugin-isolated-decl/esbuild')()],
16
+ * })
17
+ * ```
18
+ */
2
19
  declare const _default: typeof IsolatedDecl.esbuild;
3
20
  export = _default;
package/dist/esbuild.d.ts CHANGED
@@ -1,3 +1,20 @@
1
+ /**
2
+ * This entry file is for esbuild plugin.
3
+ *
4
+ * @module
5
+ */
1
6
  import { IsolatedDecl } from "./index.js";
7
+ /**
8
+ * Esbuild plugin
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { build } from 'esbuild'
13
+ *
14
+ * build({
15
+ * plugins: [require('unplugin-isolated-decl/esbuild')()],
16
+ * })
17
+ * ```
18
+ */
2
19
  declare const _default: typeof IsolatedDecl.esbuild;
3
20
  export default _default;
package/dist/esbuild.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./transformer-GSFmnEOV.js";
2
- import { IsolatedDecl } from "./src_index-jESannmB.js";
1
+ import "./transformer-DDte86lZ.js";
2
+ import { IsolatedDecl } from "./src-B4aBGZxL.js";
3
3
 
4
4
  //#region src/esbuild.ts
5
5
  var esbuild_default = IsolatedDecl.esbuild;
package/dist/farm.cjs ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ const require_src = require('./src-C3bhcfQ9.cjs');
3
+ require('./transformer-C4rLQvdl.cjs');
4
+
5
+ //#region src/farm.ts
6
+ var farm_default = require_src.IsolatedDecl.farm;
7
+
8
+ //#endregion
9
+ module.exports = farm_default;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This entry file is for Farm plugin.
3
+ *
4
+ * @module
5
+ */
6
+ import { IsolatedDecl } from "./index.js";
7
+ /**
8
+ * Farm plugin
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * // farm.config.js
13
+ * import IsolatedDecl from 'unplugin-isolated-decl/farm'
14
+ *
15
+ * export default {
16
+ * plugins: [IsolatedDecl()],
17
+ * }
18
+ * ```
19
+ */
20
+ declare const _default: typeof IsolatedDecl.farm;
21
+ export = _default;
package/dist/farm.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This entry file is for Farm plugin.
3
+ *
4
+ * @module
5
+ */
6
+ import { IsolatedDecl } from "./index.js";
7
+ /**
8
+ * Farm plugin
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * // farm.config.js
13
+ * import IsolatedDecl from 'unplugin-isolated-decl/farm'
14
+ *
15
+ * export default {
16
+ * plugins: [IsolatedDecl()],
17
+ * }
18
+ * ```
19
+ */
20
+ declare const _default: typeof IsolatedDecl.farm;
21
+ export default _default;
package/dist/farm.js ADDED
@@ -0,0 +1,8 @@
1
+ import "./transformer-DDte86lZ.js";
2
+ import { IsolatedDecl } from "./src-B4aBGZxL.js";
3
+
4
+ //#region src/farm.ts
5
+ var farm_default = IsolatedDecl.farm;
6
+
7
+ //#endregion
8
+ export { farm_default as default };
package/dist/index.cjs CHANGED
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
- const require_src_index = require('./src_index-tVPRzUWA.cjs');
3
- require('./transformer-9aaNC01N.cjs');
2
+ const require_src = require('./src-C3bhcfQ9.cjs');
3
+ require('./transformer-C4rLQvdl.cjs');
4
4
 
5
- exports.IsolatedDecl = require_src_index.IsolatedDecl
6
- exports.lowestCommonAncestor = require_src_index.lowestCommonAncestor
5
+ exports.IsolatedDecl = require_src.IsolatedDecl
package/dist/index.d.cts CHANGED
@@ -1,5 +1,11 @@
1
+ /**
2
+ * This entry file is for main unplugin.
3
+ * @module
4
+ */
1
5
  import { type UnpluginInstance } from 'unplugin';
2
6
  import { type Options } from "./core/options.js";
3
7
  export type { Options };
8
+ /**
9
+ * The main unplugin instance.
10
+ */
4
11
  export declare const IsolatedDecl: UnpluginInstance<Options | undefined, false>;
5
- export declare function lowestCommonAncestor(...filepaths: string[]): string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,11 @@
1
+ /**
2
+ * This entry file is for main unplugin.
3
+ * @module
4
+ */
1
5
  import { type UnpluginInstance } from 'unplugin';
2
6
  import { type Options } from "./core/options.js";
3
7
  export type { Options };
8
+ /**
9
+ * The main unplugin instance.
10
+ */
4
11
  export declare const IsolatedDecl: UnpluginInstance<Options | undefined, false>;
5
- export declare function lowestCommonAncestor(...filepaths: string[]): string;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./transformer-GSFmnEOV.js";
2
- import { IsolatedDecl, lowestCommonAncestor } from "./src_index-jESannmB.js";
1
+ import "./transformer-DDte86lZ.js";
2
+ import { IsolatedDecl } from "./src-B4aBGZxL.js";
3
3
 
4
- export { IsolatedDecl, lowestCommonAncestor };
4
+ export { IsolatedDecl };
package/dist/rolldown.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- const require_src_index = require('./src_index-tVPRzUWA.cjs');
3
- require('./transformer-9aaNC01N.cjs');
2
+ const require_src = require('./src-C3bhcfQ9.cjs');
3
+ require('./transformer-C4rLQvdl.cjs');
4
4
 
5
5
  //#region src/rolldown.ts
6
- var rolldown_default = require_src_index.IsolatedDecl.rolldown;
6
+ var rolldown_default = require_src.IsolatedDecl.rolldown;
7
7
 
8
8
  //#endregion
9
9
  module.exports = rolldown_default;
@@ -1,3 +1,21 @@
1
+ /**
2
+ * This entry file is for Rolldown plugin.
3
+ *
4
+ * @module
5
+ */
1
6
  import { IsolatedDecl } from "./index.js";
7
+ /**
8
+ * Rolldown plugin
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * // rolldown.config.js
13
+ * import IsolatedDecl from 'unplugin-isolated-decl/rolldown'
14
+ *
15
+ * export default {
16
+ * plugins: [IsolatedDecl()],
17
+ * }
18
+ * ```
19
+ */
2
20
  declare const _default: typeof IsolatedDecl.rolldown;
3
21
  export = _default;
@@ -1,3 +1,21 @@
1
+ /**
2
+ * This entry file is for Rolldown plugin.
3
+ *
4
+ * @module
5
+ */
1
6
  import { IsolatedDecl } from "./index.js";
7
+ /**
8
+ * Rolldown plugin
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * // rolldown.config.js
13
+ * import IsolatedDecl from 'unplugin-isolated-decl/rolldown'
14
+ *
15
+ * export default {
16
+ * plugins: [IsolatedDecl()],
17
+ * }
18
+ * ```
19
+ */
2
20
  declare const _default: typeof IsolatedDecl.rolldown;
3
21
  export default _default;
package/dist/rolldown.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./transformer-GSFmnEOV.js";
2
- import { IsolatedDecl } from "./src_index-jESannmB.js";
1
+ import "./transformer-DDte86lZ.js";
2
+ import { IsolatedDecl } from "./src-B4aBGZxL.js";
3
3
 
4
4
  //#region src/rolldown.ts
5
5
  var rolldown_default = IsolatedDecl.rolldown;
package/dist/rollup.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- const require_src_index = require('./src_index-tVPRzUWA.cjs');
3
- require('./transformer-9aaNC01N.cjs');
2
+ const require_src = require('./src-C3bhcfQ9.cjs');
3
+ require('./transformer-C4rLQvdl.cjs');
4
4
 
5
5
  //#region src/rollup.ts
6
- var rollup_default = require_src_index.IsolatedDecl.rollup;
6
+ var rollup_default = require_src.IsolatedDecl.rollup;
7
7
 
8
8
  //#endregion
9
9
  module.exports = rollup_default;
package/dist/rollup.d.cts CHANGED
@@ -1,3 +1,21 @@
1
+ /**
2
+ * This entry file is for Rollup plugin.
3
+ *
4
+ * @module
5
+ */
1
6
  import { IsolatedDecl } from "./index.js";
7
+ /**
8
+ * Rollup plugin
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * // rollup.config.js
13
+ * import IsolatedDecl from 'unplugin-isolated-decl/rollup'
14
+ *
15
+ * export default {
16
+ * plugins: [IsolatedDecl()],
17
+ * }
18
+ * ```
19
+ */
2
20
  declare const _default: typeof IsolatedDecl.rollup;
3
21
  export = _default;
package/dist/rollup.d.ts CHANGED
@@ -1,3 +1,21 @@
1
+ /**
2
+ * This entry file is for Rollup plugin.
3
+ *
4
+ * @module
5
+ */
1
6
  import { IsolatedDecl } from "./index.js";
7
+ /**
8
+ * Rollup plugin
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * // rollup.config.js
13
+ * import IsolatedDecl from 'unplugin-isolated-decl/rollup'
14
+ *
15
+ * export default {
16
+ * plugins: [IsolatedDecl()],
17
+ * }
18
+ * ```
19
+ */
2
20
  declare const _default: typeof IsolatedDecl.rollup;
3
21
  export default _default;
package/dist/rollup.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./transformer-GSFmnEOV.js";
2
- import { IsolatedDecl } from "./src_index-jESannmB.js";
1
+ import "./transformer-DDte86lZ.js";
2
+ import { IsolatedDecl } from "./src-B4aBGZxL.js";
3
3
 
4
4
  //#region src/rollup.ts
5
5
  var rollup_default = IsolatedDecl.rollup;