@eik/esbuild-plugin 2.0.19 → 2.0.20
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/package.json +10 -7
- package/types/plugin.d.ts +21 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eik/esbuild-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.20",
|
|
4
4
|
"description": "esbuild plugin for loading import maps from a Eik server and applying the mapping to ECMAScript modules in preparation for upload to the same server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/plugin.js",
|
|
@@ -42,19 +42,19 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@eik/eslint-config": "1.0.25",
|
|
44
44
|
"@eik/prettier-config": "1.0.2",
|
|
45
|
-
"@eik/semantic-release-config": "1.0.
|
|
46
|
-
"@eik/typescript-config": "1.0.
|
|
45
|
+
"@eik/semantic-release-config": "1.0.18",
|
|
46
|
+
"@eik/typescript-config": "1.0.2",
|
|
47
47
|
"@types/esbuild-plugin-import-map": "0.0.3",
|
|
48
48
|
"@types/node": "24.10.1",
|
|
49
49
|
"esbuild": "0.28.1",
|
|
50
|
-
"eslint": "9.39.
|
|
50
|
+
"eslint": "9.39.5",
|
|
51
51
|
"fastify": "5.8.5",
|
|
52
52
|
"npm-run-all2": "8.0.4",
|
|
53
53
|
"prettier": "3.7.3",
|
|
54
54
|
"rimraf": "6.1.3",
|
|
55
|
-
"semantic-release": "25.0.
|
|
56
|
-
"tap": "21.
|
|
57
|
-
"typescript": "
|
|
55
|
+
"semantic-release": "25.0.5",
|
|
56
|
+
"tap": "21.7.5",
|
|
57
|
+
"typescript": "7.0.2"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@eik/common": "5.1.34",
|
|
@@ -62,5 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=20"
|
|
65
|
+
},
|
|
66
|
+
"tap": {
|
|
67
|
+
"type-strip-only": true
|
|
65
68
|
}
|
|
66
69
|
}
|
package/types/plugin.d.ts
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
export type ImportMap = {
|
|
2
|
+
imports: Record<string, string>;
|
|
3
|
+
};
|
|
4
|
+
export type LoadOptions = {
|
|
5
|
+
path?: string;
|
|
6
|
+
/**
|
|
7
|
+
* URLs to import maps hosted on an Eik server. Takes precedence over `eik.json`.
|
|
8
|
+
*/
|
|
9
|
+
urls?: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Inline import maps that should be used. Takes precedence over `urls` and `eik.json`.
|
|
12
|
+
*/
|
|
13
|
+
maps?: ImportMap[];
|
|
14
|
+
};
|
|
1
15
|
/**
|
|
2
16
|
* @typedef {object} ImportMap
|
|
3
17
|
* @property {Record<string, string>} imports
|
|
@@ -25,13 +39,17 @@
|
|
|
25
39
|
* });
|
|
26
40
|
* ```
|
|
27
41
|
*/
|
|
28
|
-
export function load({ path, maps, urls, }?: LoadOptions): Promise<void>;
|
|
42
|
+
export declare function load({ path, maps, urls, }?: LoadOptions): Promise<void>;
|
|
29
43
|
/**
|
|
30
44
|
* Clear the loaded import maps from the plugins internal cache.
|
|
31
45
|
*
|
|
32
46
|
* @returns {void}
|
|
33
47
|
*/
|
|
34
|
-
export function clear(): void;
|
|
48
|
+
export declare function clear(): void;
|
|
49
|
+
export type Plugin = {
|
|
50
|
+
name: string;
|
|
51
|
+
setup: (build: any) => void;
|
|
52
|
+
};
|
|
35
53
|
/**
|
|
36
54
|
* @typedef {object} Plugin
|
|
37
55
|
* @property {string} name
|
|
@@ -52,22 +70,4 @@ export function clear(): void;
|
|
|
52
70
|
* });
|
|
53
71
|
* ```
|
|
54
72
|
*/
|
|
55
|
-
export function plugin(): Plugin;
|
|
56
|
-
export type ImportMap = {
|
|
57
|
-
imports: Record<string, string>;
|
|
58
|
-
};
|
|
59
|
-
export type LoadOptions = {
|
|
60
|
-
path?: string;
|
|
61
|
-
/**
|
|
62
|
-
* URLs to import maps hosted on an Eik server. Takes precedence over `eik.json`.
|
|
63
|
-
*/
|
|
64
|
-
urls?: string[];
|
|
65
|
-
/**
|
|
66
|
-
* Inline import maps that should be used. Takes precedence over `urls` and `eik.json`.
|
|
67
|
-
*/
|
|
68
|
-
maps?: ImportMap[];
|
|
69
|
-
};
|
|
70
|
-
export type Plugin = {
|
|
71
|
-
name: string;
|
|
72
|
-
setup: (build: any) => void;
|
|
73
|
-
};
|
|
73
|
+
export declare function plugin(): Plugin;
|