wkt-parse-and-geojson 1.0.7 → 1.0.9

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/README.md CHANGED
@@ -67,7 +67,6 @@ npm run typecheck
67
67
  | `dist/index.esm.js` | ES Module | 浏览器 / 现代打包工具 |
68
68
  | `dist/index.cjs.js` | CommonJS | Node.js |
69
69
  | `dist/index.umd.js` | UMD | `<script>` 标签直接引入 |
70
- | `dist/index.d.ts` | TypeScript 声明 | IDE 类型提示 |
71
70
 
72
71
  ---
73
72
 
@@ -721,20 +720,30 @@ console.log(build(collection));
721
720
 
722
721
  ## 本地调试
723
722
 
724
- 启动 HTTP 服务,在浏览器中测试 debug 页面:
723
+ 项目根目录提供两个测试页面:
724
+
725
+ | 文件 | 用途 | 加载方式 |
726
+ |------|------|----------|
727
+ | `index-local.html` | 本地版本测试 | 使用本地 `dist/index.umd.js` |
728
+ | `index-online.html` | 线上版本测试 | 使用 unpkg CDN 加载 npm 包 |
729
+
730
+ 启动本地 HTTP 服务后打开对应页面:
725
731
 
726
732
  ```bash
727
- # 方式一:npx serve
728
- npx serve debug
733
+ # 方式一:npx serve(推荐)
734
+ npx serve .
729
735
 
730
736
  # 方式二:Python
731
- cd debug && python -m http.server 8080
737
+ python -m http.server 8080
732
738
 
733
739
  # 方式三:http-server
734
- npx http-server debug -p 8080
740
+ npx http-server -p 8080
735
741
  ```
736
742
 
737
- 然后访问 `http://localhost:8080/index.html`,即可在页面中交互测试所有 API。
743
+ 访问 `http://localhost:8080/index-local.html` 测试本地构建版本。
744
+ 访问 `http://localhost:8080/index-online.html` 测试线上 npm 版本。
745
+
746
+ **提示**:本地测试前需先运行 `npm run build` 构建项目。
738
747
 
739
748
  ---
740
749