@wind-cesium/wind-cesium-plugin 1.0.0 → 1.0.1
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/dist/index.d.ts +1 -0
- package/dist/index.js +12 -0
- package/package.json +10 -3
- package/src/index.ts +13 -0
- package/tsconfig.json +17 -0
- package/index.js +0 -5
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function addOne(num: number): number;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhubj | ''
|
|
3
|
+
* @Date: 2026-02-12 10:00:35
|
|
4
|
+
* @LastEditors: zhubj | ''
|
|
5
|
+
* @LastEditTime: 2026-02-12 10:27:57
|
|
6
|
+
* @FilePath: \wind-cesium-plugin\src\index.ts
|
|
7
|
+
* @Description:
|
|
8
|
+
*/
|
|
9
|
+
export function addOne(num) {
|
|
10
|
+
return num + 1;
|
|
11
|
+
}
|
|
12
|
+
console.log(addOne(3)); // 输出4
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wind-cesium/wind-cesium-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "cesium 的一些扩展方案实现",
|
|
5
|
-
"main": "index.js",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"prepublishOnly": "npm run build"
|
|
8
11
|
},
|
|
9
12
|
"keywords": [],
|
|
10
13
|
"author": "with-the-winds",
|
|
@@ -12,5 +15,9 @@
|
|
|
12
15
|
"repository": {
|
|
13
16
|
"type": "git",
|
|
14
17
|
"url": "https://gitee.com/with_the_winds/wind-cesium-plugin.git"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/node": "^25.2.3",
|
|
21
|
+
"typescript": "^5.9.3"
|
|
15
22
|
}
|
|
16
23
|
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhubj | ''
|
|
3
|
+
* @Date: 2026-02-12 10:00:35
|
|
4
|
+
* @LastEditors: zhubj | ''
|
|
5
|
+
* @LastEditTime: 2026-02-12 10:27:57
|
|
6
|
+
* @FilePath: \wind-cesium-plugin\src\index.ts
|
|
7
|
+
* @Description:
|
|
8
|
+
*/
|
|
9
|
+
export function addOne(num: number): number {
|
|
10
|
+
return num + 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
console.log(addOne(3)); // 输出4
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es6",
|
|
4
|
+
"module": "es6",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"rootDir": "./src",
|
|
8
|
+
"skipLibCheck": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"src/**/*"
|
|
12
|
+
],
|
|
13
|
+
"exclude": [
|
|
14
|
+
"node_modules",
|
|
15
|
+
"**/*.spec.ts"
|
|
16
|
+
]
|
|
17
|
+
}
|