ol-base-components 3.5.2 → 3.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol-base-components",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "private": false,
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.mjs",
@@ -11,7 +11,7 @@ const http = require('http')
11
11
  const https = require('https')
12
12
 
13
13
  // 读取 configBaseUrl.js 文件
14
- const configPath = path.join(__dirname, '../public/configBaseUrl.js')
14
+ const configPath = path.join(process.cwd(), "public", "configBaseUrl.js");
15
15
  const configContent = fs.readFileSync(configPath, 'utf8')
16
16
 
17
17
  // 使用正则表达式提取 baseURL(排除注释行)
@@ -23,7 +23,8 @@ if (!baseURLMatch) {
23
23
 
24
24
  const baseURL = baseURLMatch[1]
25
25
  const swaggerUrl = `${baseURL}/swagger/v1/swagger.json`
26
- const outputPath = path.join(__dirname, '../swagger/swagger.json')
26
+ const outputPath = path.join(process.cwd(), "swagger", "swagger.json");
27
+
27
28
  const swaggerDir = path.dirname(outputPath)
28
29
 
29
30
  // 如果 swagger 目录不存在,则创建