Bladeren bron

fix[docs]: 解决 dumi 标识冲突

chenlei 1 jaar geleden
bovenliggende
commit
48f4b23e0e

+ 1 - 0
.gitignore

@@ -19,3 +19,4 @@ docs-dist
 
 dist
 dist-node
+build

+ 1 - 1
packages/docs/.umirc.ts

@@ -19,7 +19,7 @@ export default defineConfig({
     "@dage/utils": join(__dirname, "../utils/dist/"),
     "@dage/service": join(__dirname, "../service/dist/"),
     "@dage/pc-components": join(__dirname, "../pc-components/dist/"),
-    "@dage/krpano": join(__dirname, "../krpano/dist/"),
+    "@dage/krpano": join(__dirname, "../krpano/build/"),
   },
   navs: [
     {

+ 0 - 2
packages/docs/docs/krpano/index.md

@@ -1,5 +1,3 @@
-xml? 狗看了都摇头,改个 skin 样式琢磨半天,想动态添加或者切换场景无从下手,国内社区少的可怜,只有个[英文文档](https://krpano.com/docu/xml/?version=119pr13),修改成本太高了,还好有 gpt 做参数解析。
-
 `@dage/krpano` 将常用的标签使用 `React` 进行了组件化封装(MVVM 真香),并在实例上补充了 `vtourskin` 的功能,支持类型推断,基本满足开发需求。
 
 ## 开发环境

+ 5 - 5
packages/krpano/package.json

@@ -2,15 +2,15 @@
   "name": "@dage/krpano",
   "version": "1.0.0",
   "description": "krpano sdk",
-  "module": "dist/index.js",
-  "main": "dist/index.js",
-  "typings": "dist/index.d.ts",
+  "module": "build/index.js",
+  "main": "build/index.js",
+  "typings": "build/index.d.ts",
   "files": [
-    "dist"
+    "build"
   ],
   "scripts": {
     "start": "tsc --build tsconfig.build.json --watch",
-    "prebuild": "rimraf dist",
+    "prebuild": "rimraf build",
     "build": "tsc --build tsconfig.build.json",
     "type-check": "tsc --noEmit",
     "test": "jest"

+ 1 - 1
packages/krpano/tsconfig.build.json

@@ -3,5 +3,5 @@
   "compilerOptions": {
     "noEmit": false
   },
-  "exclude": ["dist", "node_modules", "*.d.ts", "**/*.test.*"]
+  "exclude": ["build", "node_modules", "*.d.ts", "**/*.test.*"]
 }

+ 2 - 2
packages/krpano/tsconfig.json

@@ -14,7 +14,7 @@
     "declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
     "sourceMap": false /* Generates corresponding '.map' file. */,
     // "outFile": "./",                             /* Concatenate and emit output to single file. */
-    "outDir": "./dist" /* Redirect output structure to the directory. */,
+    "outDir": "./build" /* Redirect output structure to the directory. */,
     "rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
     // "composite": true,                           /* Enable project compilation */
     // "tsBuildInfoFile": "./",                     /* Specify file to store incremental compilation information */
@@ -69,5 +69,5 @@
     "skipLibCheck": true /* Skip type checking of declaration files. */,
     "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
   },
-  "exclude": ["dist", "node_modules", "*.d.ts"]
+  "exclude": ["build", "node_modules", "*.d.ts"]
 }