forge-sql-orm-cli 2.0.13 → 2.0.14
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/forgeSqlOrmCLI.d.ts +1 -0
- package/dist-cli/forgeSqlOrmCLI.js +17 -0
- package/dist-cli/forgeSqlOrmCLI.js.map +1 -0
- package/dist-cli/forgeSqlOrmCLI.mjs +15 -0
- package/dist-cli/forgeSqlOrmCLI.mjs.map +1 -0
- package/package.json +5 -4
- package/src/forgeSqlOrmCLI.ts +20 -0
- package/tsconfig.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const child_process = require("child_process");
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const url = require("url");
|
|
5
|
+
var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
|
|
6
|
+
const __filename$1 = url.fileURLToPath(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("forgeSqlOrmCLI.js", document.baseURI).href);
|
|
7
|
+
const __dirname$1 = path.dirname(__filename$1);
|
|
8
|
+
const args = process.argv.slice(2).join(" ");
|
|
9
|
+
const cliPath = path.resolve(__dirname$1, "cli.mjs");
|
|
10
|
+
try {
|
|
11
|
+
child_process.execSync(`npx --yes tsm --no-warnings ${cliPath} ${args}`, { stdio: "inherit" });
|
|
12
|
+
process.exit(0);
|
|
13
|
+
} catch (e) {
|
|
14
|
+
console.error("⚠️ Command execution failed:", e.message);
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=forgeSqlOrmCLI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeSqlOrmCLI.js","sources":["../src/forgeSqlOrmCLI.ts"],"sourcesContent":["import {execSync} from 'child_process'\nimport path from \"path\";\nimport { fileURLToPath } from 'url';\nimport { dirname } from 'path';\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n// Get CLI arguments (excluding \"node\" and script path)\nconst args = process.argv.slice(2).join(\" \");\n\n// Resolve the path to cli.ts (your TypeScript entry file)\nconst cliPath = path.resolve(__dirname, \"cli.mjs\");\n\ntry {\n execSync(`npx --yes tsm --no-warnings ${cliPath} ${args}`, { stdio: \"inherit\" });\n process.exit(0);\n} catch (e:any) {\n console.error(\"⚠️ Command execution failed:\", e.message);\n process.exit(1);\n}"],"names":["__filename","fileURLToPath","__dirname","dirname","execSync"],"mappings":";;;;;AAKA,MAAMA,eAAaC,IAAc,wQAAe;AAChD,MAAMC,cAAYC,aAAQH,YAAU;AAEpC,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC,EAAE,KAAK,GAAG;AAG3C,MAAM,UAAU,KAAK,QAAQE,aAAW,SAAS;AAEjD,IAAI;AACSE,yBAAA,gCAAgC,OAAO,IAAI,IAAI,IAAI,EAAE,OAAO,WAAW;AAChF,UAAQ,KAAK,CAAC;AAClB,SAAS,GAAO;AACJ,UAAA,MAAM,iCAAiC,EAAE,OAAO;AACxD,UAAQ,KAAK,CAAC;AAClB;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { execSync } from "child_process";
|
|
2
|
+
import path, { dirname } from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
5
|
+
const __dirname = dirname(__filename);
|
|
6
|
+
const args = process.argv.slice(2).join(" ");
|
|
7
|
+
const cliPath = path.resolve(__dirname, "cli.mjs");
|
|
8
|
+
try {
|
|
9
|
+
execSync(`npx --yes tsm --no-warnings ${cliPath} ${args}`, { stdio: "inherit" });
|
|
10
|
+
process.exit(0);
|
|
11
|
+
} catch (e) {
|
|
12
|
+
console.error("⚠️ Command execution failed:", e.message);
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=forgeSqlOrmCLI.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgeSqlOrmCLI.mjs","sources":["../src/forgeSqlOrmCLI.ts"],"sourcesContent":["import {execSync} from 'child_process'\nimport path from \"path\";\nimport { fileURLToPath } from 'url';\nimport { dirname } from 'path';\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n// Get CLI arguments (excluding \"node\" and script path)\nconst args = process.argv.slice(2).join(\" \");\n\n// Resolve the path to cli.ts (your TypeScript entry file)\nconst cliPath = path.resolve(__dirname, \"cli.mjs\");\n\ntry {\n execSync(`npx --yes tsm --no-warnings ${cliPath} ${args}`, { stdio: \"inherit\" });\n process.exit(0);\n} catch (e:any) {\n console.error(\"⚠️ Command execution failed:\", e.message);\n process.exit(1);\n}"],"names":[],"mappings":";;;AAKA,MAAM,aAAa,cAAc,YAAY,GAAG;AAChD,MAAM,YAAY,QAAQ,UAAU;AAEpC,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC,EAAE,KAAK,GAAG;AAG3C,MAAM,UAAU,KAAK,QAAQ,WAAW,SAAS;AAEjD,IAAI;AACS,WAAA,gCAAgC,OAAO,IAAI,IAAI,IAAI,EAAE,OAAO,WAAW;AAChF,UAAQ,KAAK,CAAC;AAClB,SAAS,GAAO;AACJ,UAAA,MAAM,iCAAiC,EAAE,OAAO;AACxD,UAAQ,KAAK,CAAC;AAClB;"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forge-sql-orm-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
4
4
|
"description": "CLI tool for Forge SQL ORM",
|
|
5
5
|
"main": "dist-cli/cli.js",
|
|
6
6
|
"types": "dist-cli/cli.d.ts",
|
|
7
7
|
"bin": {
|
|
8
|
-
"forge-sql-orm-cli": "./dist-cli/
|
|
8
|
+
"forge-sql-orm-cli": "./dist-cli/forgeSqlOrmCLI.mjs"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint src --ext .ts,.tsx",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"dotenv": "^16.4.7",
|
|
47
47
|
"drizzle-kit": "^0.30.6",
|
|
48
48
|
"inquirer": "^12.5.2",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
49
|
+
"mysql2": "^3.14.0",
|
|
50
|
+
"reflect-metadata": "^0.2.2"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"drizzle-orm": "^0.41.0",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@types/inquirer": "^9.0.7",
|
|
58
58
|
"@types/node": "^22.14.0",
|
|
59
59
|
"@vitest/coverage-v8": "^3.1.1",
|
|
60
|
+
"esbuild": "^0.25.2",
|
|
60
61
|
"reflect-metadata": "^0.2.2",
|
|
61
62
|
"ts-node": "^10.9.2",
|
|
62
63
|
"typescript": "^5.8.3",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {execSync} from 'child_process'
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { fileURLToPath } from 'url';
|
|
4
|
+
import { dirname } from 'path';
|
|
5
|
+
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = dirname(__filename);
|
|
8
|
+
// Get CLI arguments (excluding "node" and script path)
|
|
9
|
+
const args = process.argv.slice(2).join(" ");
|
|
10
|
+
|
|
11
|
+
// Resolve the path to cli.ts (your TypeScript entry file)
|
|
12
|
+
const cliPath = path.resolve(__dirname, "cli.mjs");
|
|
13
|
+
|
|
14
|
+
try {
|
|
15
|
+
execSync(`npx --yes tsm --no-warnings ${cliPath} ${args}`, { stdio: "inherit" });
|
|
16
|
+
process.exit(0);
|
|
17
|
+
} catch (e:any) {
|
|
18
|
+
console.error("⚠️ Command execution failed:", e.message);
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|