@open-xchange/vite-plugin-replace-pkg 0.0.6 → 1.0.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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/dist/index.d.ts +3 -1
- package/package.json +14 -11
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ The location of the source file to resolve the module imports with. There are di
|
|
|
75
75
|
| Name | Type | Default | Description |
|
|
76
76
|
| - | - | - | - |
|
|
77
77
|
| `url` | `string` | _required_ | The URL of the source file to be downloaded. |
|
|
78
|
-
| `query` | `
|
|
78
|
+
| `query` | `Record<string, string\|number\|boolean>` | `{}` | Query parameters to be added to the URL. |
|
|
79
79
|
|
|
80
80
|
Example:
|
|
81
81
|
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,9 @@ export interface VitePluginReplacePkg_GitLabFile {
|
|
|
35
35
|
path: string;
|
|
36
36
|
/**
|
|
37
37
|
* The name of a branch or a tag, or a commit ID. Slashes in branch names
|
|
38
|
-
* will be encoded internally.
|
|
38
|
+
* will be encoded internally.
|
|
39
|
+
*
|
|
40
|
+
* @default "HEAD"
|
|
39
41
|
*/
|
|
40
42
|
ref?: string;
|
|
41
43
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/vite-plugin-replace-pkg",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Vite plugin replacing a specific external package with an arbitrary source code module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,25 +10,28 @@
|
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=20.18"
|
|
12
12
|
},
|
|
13
|
-
"packageManager": "yarn@4.
|
|
13
|
+
"packageManager": "yarn@4.6.0",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"exports": "./dist/index.js",
|
|
16
16
|
"scripts": {
|
|
17
17
|
"prepare": "yarn build",
|
|
18
18
|
"prepack": "yarn build && yarn lint",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"clean": "premove dist",
|
|
20
|
+
"build": "yarn clean && tsc --project src/tsconfig.json",
|
|
21
|
+
"lint": "tsc && tsc --project src/tsconfig.json --noEmit && eslint ."
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
|
-
"@open-xchange/vite-helper": "0.1
|
|
24
|
+
"@open-xchange/vite-helper": "^1.0.1"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
|
-
"@open-xchange/linter-presets": "
|
|
27
|
-
"@types/node": "^22.
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
27
|
+
"@open-xchange/linter-presets": "^1.2.12",
|
|
28
|
+
"@types/node": "^22.13.4",
|
|
29
|
+
"better-typescript-lib": "^2.10.1",
|
|
30
|
+
"eslint": "^9.20.1",
|
|
31
|
+
"jiti": "^2.4.2",
|
|
32
|
+
"premove": "^4.0.0",
|
|
33
|
+
"typescript": "^5.7.3",
|
|
34
|
+
"vite": "^6.1.1"
|
|
32
35
|
},
|
|
33
36
|
"peerDependencies": {
|
|
34
37
|
"vite": "^5.3 || ^6.0.0"
|