@ic-reactor/vite-plugin 0.3.1 → 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/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +2 -2
- package/src/index.ts +3 -0
package/dist/index.cjs
CHANGED
|
@@ -82,6 +82,9 @@ function icReactorPlugin(options) {
|
|
|
82
82
|
return {};
|
|
83
83
|
}
|
|
84
84
|
const canisterNames = options.canisters.map((c) => c.name);
|
|
85
|
+
if (!canisterNames.includes("internet_identity")) {
|
|
86
|
+
canisterNames.push("internet_identity");
|
|
87
|
+
}
|
|
85
88
|
const icEnv = getIcEnvironmentInfo(canisterNames);
|
|
86
89
|
if (!icEnv) {
|
|
87
90
|
return {
|
package/dist/index.js
CHANGED
|
@@ -52,6 +52,9 @@ function icReactorPlugin(options) {
|
|
|
52
52
|
return {};
|
|
53
53
|
}
|
|
54
54
|
const canisterNames = options.canisters.map((c) => c.name);
|
|
55
|
+
if (!canisterNames.includes("internet_identity")) {
|
|
56
|
+
canisterNames.push("internet_identity");
|
|
57
|
+
}
|
|
55
58
|
const icEnv = getIcEnvironmentInfo(canisterNames);
|
|
56
59
|
if (!icEnv) {
|
|
57
60
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic-reactor/vite-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Vite plugin for zero-config IC reactor generation from Candid files",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"url": "https://github.com/B3Pay/ic-reactor/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ic-reactor/codegen": "0.
|
|
40
|
+
"@ic-reactor/codegen": "0.4.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
package/src/index.ts
CHANGED
|
@@ -126,6 +126,9 @@ export function icReactorPlugin(options: IcReactorPluginOptions): Plugin {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
const canisterNames = options.canisters.map((c) => c.name)
|
|
129
|
+
if (!canisterNames.includes("internet_identity")) {
|
|
130
|
+
canisterNames.push("internet_identity")
|
|
131
|
+
}
|
|
129
132
|
const icEnv = getIcEnvironmentInfo(canisterNames)
|
|
130
133
|
|
|
131
134
|
if (!icEnv) {
|