feat: 使用pnpm进行包管理
This commit is contained in:
parent
0cb418be2a
commit
88b60948f1
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "vite-plugin-earth",
|
"name": "vite-plugin-earth",
|
||||||
"version": "2.1.2",
|
"version": "2.2.0",
|
||||||
"description": "Cesium & Mars3D library plugin for Vite",
|
"description": "Cesium & Mars3D library plugin for Vite",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
|
@ -17,7 +17,11 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsup --watch",
|
"dev": "tsup --watch",
|
||||||
|
"dev:cesium": "pnpm run --filter cesium-demo dev",
|
||||||
|
"dev:mars3d": "pnpm run --filter mars3d-demo dev",
|
||||||
"build": "tsup",
|
"build": "tsup",
|
||||||
|
"build:cesium": "pnpm run --filter cesium-demo build",
|
||||||
|
"build:mars3d": "pnpm run --filter mars3d-demo build",
|
||||||
"prepare": "npm run build"
|
"prepare": "npm run build"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cesium": "^1.105.0",
|
"cesium": "^1.105.0",
|
||||||
"vite": "^4.3.4",
|
"vite": "^4.3.4",
|
||||||
"vite-plugin-earth": "link:.."
|
"vite-plugin-earth": "workspace:*"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,5 +2,5 @@ import { defineConfig } from 'vite';
|
||||||
import { cesiumPlugin } from 'vite-plugin-earth';
|
import { cesiumPlugin } from 'vite-plugin-earth';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [cesiumPlugin()]
|
plugins: [cesiumPlugin({ useCDN: true })]
|
||||||
});
|
});
|
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^4.3.4",
|
"vite": "^4.3.4",
|
||||||
"vite-plugin-earth": "link:.."
|
"vite-plugin-earth": "workspace:*"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@turf/turf": "^6.5.0",
|
"@turf/turf": "^6.5.0",
|
|
@ -2,5 +2,9 @@ import { defineConfig } from 'vite';
|
||||||
import { mars3dPlugin } from 'vite-plugin-earth';
|
import { mars3dPlugin } from 'vite-plugin-earth';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [mars3dPlugin()]
|
plugins: [
|
||||||
|
mars3dPlugin({
|
||||||
|
useCDN: true
|
||||||
|
})
|
||||||
|
]
|
||||||
});
|
});
|
|
@ -0,0 +1,3 @@
|
||||||
|
packages:
|
||||||
|
# all packages in direct subdirs of packages/
|
||||||
|
- 'packages/*'
|
Loading…
Reference in New Issue