vite-plugin-prism-design 0.1.3 → 0.1.5
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/index.js +12 -11
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -21,17 +21,18 @@ function findWidgetScript() {
|
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
function findAgentCli() {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
path.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
try {
|
|
25
|
+
const agentPkg = require2.resolve("prism-design-agent/package.json");
|
|
26
|
+
const agentDir = path.dirname(agentPkg);
|
|
27
|
+
const cliFile = path.join(agentDir, "dist", "cli.js");
|
|
28
|
+
if (fs.existsSync(cliFile)) return cliFile;
|
|
29
|
+
} catch {
|
|
30
|
+
}
|
|
31
|
+
try {
|
|
32
|
+
const thisDir = path.dirname(new URL(import.meta.url).pathname);
|
|
33
|
+
const candidate = path.resolve(thisDir, "../../agent/dist/cli.js");
|
|
34
|
+
if (fs.existsSync(candidate)) return candidate;
|
|
35
|
+
} catch {
|
|
35
36
|
}
|
|
36
37
|
return null;
|
|
37
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-prism-design",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"prism-design-widget": "0.1.
|
|
12
|
+
"prism-design-widget": "0.1.4",
|
|
13
|
+
"prism-design-agent": "0.2.3"
|
|
13
14
|
},
|
|
14
15
|
"peerDependencies": {
|
|
15
16
|
"vite": ">=5.0.0"
|