node-karin 1.3.2 → 1.3.3
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 +7 -0
- package/dist/index.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.3.3](https://github.com/KarinJS/Karin/compare/core-v1.3.2...core-v1.3.3) (2025-02-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Bug Fixes
|
|
7
|
+
|
|
8
|
+
* web.config.mjs ([38d3417](https://github.com/KarinJS/Karin/commit/38d34172931fdeb3de8047971aac026b00cabf46))
|
|
9
|
+
|
|
3
10
|
## [1.3.2](https://github.com/KarinJS/Karin/compare/core-v1.3.1...core-v1.3.2) (2025-02-10)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.js
CHANGED
|
@@ -10033,10 +10033,16 @@ var init_config3 = __esm({
|
|
|
10033
10033
|
getConfigPath = (options) => {
|
|
10034
10034
|
if (options.type === "npm") {
|
|
10035
10035
|
const configPath3 = path15.join(process.cwd(), "node_modules", options.name, WEB_CONFIG_NAME);
|
|
10036
|
-
if (
|
|
10037
|
-
return
|
|
10036
|
+
if (fs21.existsSync(configPath3)) {
|
|
10037
|
+
return configPath3;
|
|
10038
|
+
}
|
|
10039
|
+
if (isDev()) {
|
|
10040
|
+
const rootConfigPath = path15.join(process.cwd(), WEB_CONFIG_NAME);
|
|
10041
|
+
if (fs21.existsSync(rootConfigPath)) {
|
|
10042
|
+
return rootConfigPath;
|
|
10043
|
+
}
|
|
10038
10044
|
}
|
|
10039
|
-
return
|
|
10045
|
+
return null;
|
|
10040
10046
|
}
|
|
10041
10047
|
let configPath2 = path15.join(process.cwd(), "plugins", options.name, WEB_CONFIG_NAME);
|
|
10042
10048
|
if (fs21.existsSync(configPath2)) return configPath2;
|