sonamu 0.2.45 → 0.2.46
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/.pnp.cjs +12 -12
- package/package.json +6 -19
- package/tsup.config.js +4 -1
- package/dist/bin/cli-wrapper.d.mts +0 -1
- package/dist/bin/cli-wrapper.mjs +0 -34
- package/dist/bin/cli-wrapper.mjs.map +0 -1
- package/dist/bin/cli.d.mts +0 -2
- package/dist/bin/cli.mjs +0 -887
- package/dist/bin/cli.mjs.map +0 -1
- package/dist/chunk-7BVQURJT.mjs +0 -7446
- package/dist/chunk-7BVQURJT.mjs.map +0 -1
- package/dist/chunk-JXJTFHF7.mjs +0 -20
- package/dist/chunk-JXJTFHF7.mjs.map +0 -1
- package/dist/index.d.mts +0 -1419
- package/dist/index.mjs +0 -427
- package/dist/index.mjs.map +0 -1
package/.pnp.cjs
CHANGED
|
@@ -45,7 +45,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|
|
45
45
|
["fs-extra", "npm:10.1.0"],\
|
|
46
46
|
["glob", "npm:8.0.3"],\
|
|
47
47
|
["inflection", "npm:1.13.2"],\
|
|
48
|
-
["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:
|
|
48
|
+
["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:3.1.0"],\
|
|
49
49
|
["lodash", "npm:4.17.21"],\
|
|
50
50
|
["luxon", "npm:3.0.3"],\
|
|
51
51
|
["mysql2", "npm:3.6.1"],\
|
|
@@ -2028,17 +2028,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|
|
2028
2028
|
}]\
|
|
2029
2029
|
]],\
|
|
2030
2030
|
["knex", [\
|
|
2031
|
-
["npm:
|
|
2032
|
-
"packageLocation": "./.yarn/cache/knex-npm-
|
|
2031
|
+
["npm:3.1.0", {\
|
|
2032
|
+
"packageLocation": "./.yarn/cache/knex-npm-3.1.0-87fad39c7a-3905f8d279.zip/node_modules/knex/",\
|
|
2033
2033
|
"packageDependencies": [\
|
|
2034
|
-
["knex", "npm:
|
|
2034
|
+
["knex", "npm:3.1.0"]\
|
|
2035
2035
|
],\
|
|
2036
2036
|
"linkType": "SOFT"\
|
|
2037
2037
|
}],\
|
|
2038
|
-
["virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:
|
|
2039
|
-
"packageLocation": "./.yarn/__virtual__/knex-virtual-
|
|
2038
|
+
["virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:3.1.0", {\
|
|
2039
|
+
"packageLocation": "./.yarn/__virtual__/knex-virtual-2165dbcf21/0/cache/knex-npm-3.1.0-87fad39c7a-3905f8d279.zip/node_modules/knex/",\
|
|
2040
2040
|
"packageDependencies": [\
|
|
2041
|
-
["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:
|
|
2041
|
+
["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:3.1.0"],\
|
|
2042
2042
|
["@types/better-sqlite3", null],\
|
|
2043
2043
|
["@types/mysql", null],\
|
|
2044
2044
|
["@types/mysql2", null],\
|
|
@@ -2059,7 +2059,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|
|
2059
2059
|
["mysql", null],\
|
|
2060
2060
|
["mysql2", "npm:3.6.1"],\
|
|
2061
2061
|
["pg", null],\
|
|
2062
|
-
["pg-connection-string", "npm:2.6.
|
|
2062
|
+
["pg-connection-string", "npm:2.6.2"],\
|
|
2063
2063
|
["pg-native", null],\
|
|
2064
2064
|
["rechoir", "npm:0.8.0"],\
|
|
2065
2065
|
["resolve-from", "npm:5.0.0"],\
|
|
@@ -2588,10 +2588,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|
|
2588
2588
|
}]\
|
|
2589
2589
|
]],\
|
|
2590
2590
|
["pg-connection-string", [\
|
|
2591
|
-
["npm:2.6.
|
|
2592
|
-
"packageLocation": "./.yarn/cache/pg-connection-string-npm-2.6.
|
|
2591
|
+
["npm:2.6.2", {\
|
|
2592
|
+
"packageLocation": "./.yarn/cache/pg-connection-string-npm-2.6.2-43a4a40be5-22265882c3.zip/node_modules/pg-connection-string/",\
|
|
2593
2593
|
"packageDependencies": [\
|
|
2594
|
-
["pg-connection-string", "npm:2.6.
|
|
2594
|
+
["pg-connection-string", "npm:2.6.2"]\
|
|
2595
2595
|
],\
|
|
2596
2596
|
"linkType": "HARD"\
|
|
2597
2597
|
}]\
|
|
@@ -3126,7 +3126,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|
|
3126
3126
|
["fs-extra", "npm:10.1.0"],\
|
|
3127
3127
|
["glob", "npm:8.0.3"],\
|
|
3128
3128
|
["inflection", "npm:1.13.2"],\
|
|
3129
|
-
["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:
|
|
3129
|
+
["knex", "virtual:4f0316c76b384a8421df072012eb837a6300b9a5670bff4df3dc0e7311fb233135ca0caeff48740f668ff78d6cdf9585f6ec35f903c4a6fa6a5853ed2b050977#npm:3.1.0"],\
|
|
3130
3130
|
["lodash", "npm:4.17.21"],\
|
|
3131
3131
|
["luxon", "npm:3.0.3"],\
|
|
3132
3132
|
["mysql2", "npm:3.6.1"],\
|
package/package.json
CHANGED
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sonamu",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.46",
|
|
4
4
|
"description": "Sonamu — TypeScript Fullstack API Framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
7
7
|
"framework",
|
|
8
8
|
"orm"
|
|
9
9
|
],
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"import": {
|
|
13
|
-
"types": "./dist/index.d.mts",
|
|
14
|
-
"default": "./dist/index.mjs"
|
|
15
|
-
},
|
|
16
|
-
"require": {
|
|
17
|
-
"types": "./dist/index.d.ts",
|
|
18
|
-
"default": "./dist/index.js"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
10
|
"main": "./dist/index.js",
|
|
23
|
-
"module": "./dist/index.mjs",
|
|
24
11
|
"scripts": {
|
|
25
12
|
"dev": "yarn tsc -w -p ./tsconfig.json",
|
|
26
13
|
"build": "tsup --config ./tsup.config.js"
|
|
@@ -35,7 +22,7 @@
|
|
|
35
22
|
"type": "git",
|
|
36
23
|
"url": "https://github.com/ping-alive/sonamu.git"
|
|
37
24
|
},
|
|
38
|
-
"bin": "./dist/bin/cli
|
|
25
|
+
"bin": "./dist/bin/cli.js",
|
|
39
26
|
"dependencies": {
|
|
40
27
|
"chalk": "^4.1.2",
|
|
41
28
|
"dotenv": "^16.0.2",
|
|
@@ -44,7 +31,7 @@
|
|
|
44
31
|
"fs-extra": "^10.1.0",
|
|
45
32
|
"glob": "^8.0.3",
|
|
46
33
|
"inflection": "^1.13.2",
|
|
47
|
-
"knex": "^
|
|
34
|
+
"knex": "^3.1.0",
|
|
48
35
|
"lodash": "^4.17.21",
|
|
49
36
|
"luxon": "^3.0.3",
|
|
50
37
|
"mysql2": "^3.6.1",
|
|
@@ -72,9 +59,9 @@
|
|
|
72
59
|
"typescript": "^5.2.2"
|
|
73
60
|
},
|
|
74
61
|
"peerDependencies": {
|
|
75
|
-
"fastify": "^4.
|
|
76
|
-
"knex": "^
|
|
77
|
-
"mysql2": "^
|
|
62
|
+
"fastify": "^4.23.2",
|
|
63
|
+
"knex": "^3.1.0",
|
|
64
|
+
"mysql2": "^3.6.1"
|
|
78
65
|
},
|
|
79
66
|
"packageManager": "yarn@3.6.3"
|
|
80
67
|
}
|
package/tsup.config.js
CHANGED
|
@@ -4,7 +4,10 @@ import { defineConfig } from "tsup";
|
|
|
4
4
|
export default defineConfig({
|
|
5
5
|
entry: ["src/index.ts", "src/bin/cli.ts", "src/bin/cli-wrapper.ts"],
|
|
6
6
|
dts: true,
|
|
7
|
-
format: [
|
|
7
|
+
format: [
|
|
8
|
+
// "esm",
|
|
9
|
+
"cjs",
|
|
10
|
+
],
|
|
8
11
|
target: "es2020",
|
|
9
12
|
clean: true,
|
|
10
13
|
sourcemap: true,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ts-node
|
package/dist/bin/cli-wrapper.mjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ts-node
|
|
2
|
-
const require = (await import('module')).createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
__dirname
|
|
5
|
-
} from "../chunk-JXJTFHF7.mjs";
|
|
6
|
-
|
|
7
|
-
// src/bin/cli-wrapper.ts
|
|
8
|
-
import { spawnSync } from "child_process";
|
|
9
|
-
import { resolve } from "path";
|
|
10
|
-
import { existsSync, readFileSync } from "fs";
|
|
11
|
-
var cjsPath = resolve(__dirname, "bin/cli.js");
|
|
12
|
-
var esmPath = resolve(__dirname, "bin/cli.mjs");
|
|
13
|
-
var isESM = () => {
|
|
14
|
-
const packageJsonPath = resolve(process.cwd(), "package.json");
|
|
15
|
-
if (existsSync(packageJsonPath)) {
|
|
16
|
-
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
|
|
17
|
-
return packageJson.type === "module";
|
|
18
|
-
}
|
|
19
|
-
return false;
|
|
20
|
-
};
|
|
21
|
-
var scriptPath = isESM() ? esmPath : cjsPath;
|
|
22
|
-
if (!existsSync(scriptPath)) {
|
|
23
|
-
console.error(`Error: Script not found at ${scriptPath}`);
|
|
24
|
-
process.exit(1);
|
|
25
|
-
}
|
|
26
|
-
var result = spawnSync(
|
|
27
|
-
process.execPath,
|
|
28
|
-
[scriptPath, ...process.argv.slice(2)],
|
|
29
|
-
{
|
|
30
|
-
stdio: "inherit"
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
process.exit(result.status ?? 1);
|
|
34
|
-
//# sourceMappingURL=cli-wrapper.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/bin/cli-wrapper.ts"],"sourcesContent":["#!/usr/bin/env ts-node\n\nimport { spawnSync } from \"child_process\";\nimport { resolve } from \"path\";\nimport { existsSync, readFileSync } from \"fs\";\n\nconst cjsPath = resolve(__dirname, \"bin/cli.js\");\nconst esmPath = resolve(__dirname, \"bin/cli.mjs\");\n\nconst isESM = () => {\n const packageJsonPath = resolve(process.cwd(), \"package.json\");\n if (existsSync(packageJsonPath)) {\n const packageJson = JSON.parse(readFileSync(packageJsonPath, \"utf-8\"));\n return packageJson.type === \"module\";\n }\n return false;\n};\n\nconst scriptPath = isESM() ? esmPath : cjsPath;\n\nif (!existsSync(scriptPath)) {\n console.error(`Error: Script not found at ${scriptPath}`);\n process.exit(1);\n}\n\nconst result = spawnSync(\n process.execPath,\n [scriptPath, ...process.argv.slice(2)],\n {\n stdio: \"inherit\",\n }\n);\n\nprocess.exit(result.status ?? 1);\n"],"mappings":";;;;;;;AAEA,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,YAAY,oBAAoB;AAEzC,IAAM,UAAU,QAAQ,WAAW,YAAY;AAC/C,IAAM,UAAU,QAAQ,WAAW,aAAa;AAEhD,IAAM,QAAQ,MAAM;AAClB,QAAM,kBAAkB,QAAQ,QAAQ,IAAI,GAAG,cAAc;AAC7D,MAAI,WAAW,eAAe,GAAG;AAC/B,UAAM,cAAc,KAAK,MAAM,aAAa,iBAAiB,OAAO,CAAC;AACrE,WAAO,YAAY,SAAS;AAAA,EAC9B;AACA,SAAO;AACT;AAEA,IAAM,aAAa,MAAM,IAAI,UAAU;AAEvC,IAAI,CAAC,WAAW,UAAU,GAAG;AAC3B,UAAQ,MAAM,8BAA8B,UAAU,EAAE;AACxD,UAAQ,KAAK,CAAC;AAChB;AAEA,IAAM,SAAS;AAAA,EACb,QAAQ;AAAA,EACR,CAAC,YAAY,GAAG,QAAQ,KAAK,MAAM,CAAC,CAAC;AAAA,EACrC;AAAA,IACE,OAAO;AAAA,EACT;AACF;AAEA,QAAQ,KAAK,OAAO,UAAU,CAAC;","names":[]}
|
package/dist/bin/cli.d.mts
DELETED