@xiaoguomeiyitian/core 1.0.0

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/Cli.js ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ // 获取当前工作目录
3
+ const cwd = process.cwd();
4
+ // 获取当前脚本所在目录
5
+ const scriptDir = __dirname;
6
+ console.log(`Current working directory: ${cwd}`);
7
+ console.log(`Script directory: ${scriptDir}`);
Binary file
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Entity = exports.Global = void 0;
5
+ require("bytenode");
6
+ _a = require("./Global_" + require('os').platform()), exports.Global = _a.Global, exports.Entity = _a.Entity;
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@xiaoguomeiyitian/core",
3
+ "version": "1.0.0",
4
+ "main": "dist/index.js",
5
+ "types": "types/index.d.ts",
6
+ "bin": {
7
+ "core": "./dist/Cli.js"
8
+ },
9
+ "files": [
10
+ "types",
11
+ "dist/index.js",
12
+ "dist/Cli.js",
13
+ "dist/Global_*.jsc"
14
+ ],
15
+ "scripts": {
16
+ "jsc": "node ./gen_jsc.js ./dist/Global.js ./dist/Global.jsc",
17
+ "build": "tsc --build --diagnostics",
18
+ "pack": "npm pack --pack-destination",
19
+ "bp": "npm run build && npm run pack"
20
+ },
21
+ "bundleDependencies": false,
22
+ "devDependencies": {
23
+ "@types/node": "^22.10.2",
24
+ "typescript": "^5.7.2"
25
+ },
26
+ "dependencies": {
27
+ "bytenode": "^1.5.6",
28
+ "classic-level": "^2.0.0",
29
+ "tsrpc": "^3.4.17"
30
+ }
31
+ }
@@ -0,0 +1 @@
1
+ export declare const Global: any, Entity: any;