@devbro/pashmak 0.1.8 → 0.1.10
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/{DatabaseServiceProvider.js → DatabaseServiceProvider.mjs} +5 -9
- package/dist/DatabaseServiceProvider.mjs.map +1 -0
- package/dist/app/console/{DefaultCommand.js → DefaultCommand.mjs} +5 -3
- package/dist/app/console/DefaultCommand.mjs.map +1 -0
- package/dist/app/console/{KeyGenerateCommand.js → KeyGenerateCommand.mjs} +21 -19
- package/dist/app/console/KeyGenerateCommand.mjs.map +1 -0
- package/dist/app/console/{StartCommand.js → StartCommand.mjs} +11 -15
- package/dist/app/console/StartCommand.mjs.map +1 -0
- package/dist/app/console/generate/{GenerateControllerCommand.js → GenerateControllerCommand.mjs} +16 -19
- package/dist/app/console/generate/GenerateControllerCommand.mjs.map +1 -0
- package/dist/app/console/generate/{index.d.ts → index.d.mts} +1 -1
- package/dist/app/console/generate/index.mjs +2 -0
- package/dist/app/console/generate/index.mjs.map +1 -0
- package/dist/app/console/index.d.mts +9 -0
- package/dist/app/console/index.mjs +10 -0
- package/dist/app/console/index.mjs.map +1 -0
- package/dist/app/console/migrate/{GenerateMigrateCommand.js → GenerateMigrateCommand.mjs} +16 -19
- package/dist/app/console/migrate/GenerateMigrateCommand.mjs.map +1 -0
- package/dist/app/console/migrate/{MigrateCommand.js → MigrateCommand.mjs} +7 -12
- package/dist/app/console/migrate/MigrateCommand.mjs.map +1 -0
- package/dist/app/console/migrate/{MigrateRollbackCommand.js → MigrateRollbackCommand.mjs} +4 -11
- package/dist/app/console/migrate/MigrateRollbackCommand.mjs.map +1 -0
- package/dist/app/console/migrate/{index.d.ts → index.d.mts} +3 -3
- package/dist/app/console/migrate/index.mjs +4 -0
- package/dist/app/console/migrate/index.mjs.map +1 -0
- package/dist/app/console/project/{CreateProjectCommand.js → CreateProjectCommand.mjs} +19 -25
- package/dist/app/console/project/CreateProjectCommand.mjs.map +1 -0
- package/dist/bin/DatabaseServiceProvider.cjs +88 -0
- package/dist/bin/app/console/DefaultCommand.cjs +508 -0
- package/dist/bin/app/console/KeyGenerateCommand.cjs +556 -0
- package/dist/bin/app/console/StartCommand.cjs +516 -0
- package/dist/bin/app/console/generate/GenerateControllerCommand.cjs +529 -0
- package/dist/bin/app/console/generate/index.cjs +529 -0
- package/dist/bin/app/console/index.cjs +2143 -0
- package/dist/bin/app/console/migrate/GenerateMigrateCommand.cjs +526 -0
- package/dist/bin/app/console/migrate/MigrateCommand.cjs +560 -0
- package/dist/bin/app/console/migrate/MigrateRollbackCommand.cjs +1677 -0
- package/dist/bin/app/console/migrate/index.cjs +1814 -0
- package/dist/bin/app/console/project/CreateProjectCommand.cjs +149 -0
- package/dist/bin/{pashmak_cli.cjs → bin/pashmak_cli.cjs} +19 -25
- package/dist/bin/config.cjs +24 -0
- package/dist/bin/context.cjs +24 -0
- package/dist/bin/facades.cjs +491 -0
- package/dist/bin/helper.cjs +24 -0
- package/dist/bin/http.cjs +24 -0
- package/dist/bin/index.cjs +2425 -0
- package/dist/bin/logger.cjs +24 -0
- package/dist/bin/mailer.cjs +24 -0
- package/dist/bin/middlewares.cjs +512 -0
- package/dist/bin/orm.cjs +24 -0
- package/dist/bin/{pashmak_cli.js → pashmak_cli.mjs} +3 -3
- package/dist/bin/pashmak_cli.mjs.map +1 -0
- package/dist/bin/router.cjs +547 -0
- package/dist/bin/sql.cjs +24 -0
- package/dist/{config.js → config.mjs} +1 -1
- package/dist/config.mjs.map +1 -0
- package/dist/{context.js → context.mjs} +1 -1
- package/dist/context.mjs.map +1 -0
- package/dist/{facades.js → facades.mjs} +30 -57
- package/dist/facades.mjs.map +1 -0
- package/dist/{helper.js → helper.mjs} +1 -1
- package/dist/helper.mjs.map +1 -0
- package/dist/{http.js → http.mjs} +1 -1
- package/dist/http.mjs.map +1 -0
- package/dist/{index.d.ts → index.d.mts} +1 -0
- package/dist/{index.js → index.mjs} +4 -7
- package/dist/index.mjs.map +1 -0
- package/dist/{logger.js → logger.mjs} +1 -1
- package/dist/logger.mjs.map +1 -0
- package/dist/{mailer.js → mailer.mjs} +1 -1
- package/dist/mailer.mjs.map +1 -0
- package/dist/{middlewares.js → middlewares.mjs} +3 -5
- package/dist/middlewares.mjs.map +1 -0
- package/dist/{orm.js → orm.mjs} +1 -1
- package/dist/orm.mjs.map +1 -0
- package/dist/{router.js → router.mjs} +2 -4
- package/dist/router.mjs.map +1 -0
- package/dist/{sql.js → sql.mjs} +1 -1
- package/dist/sql.mjs.map +1 -0
- package/package.json +14 -15
- package/dist/DatabaseServiceProvider.js.map +0 -1
- package/dist/app/console/DefaultCommand.js.map +0 -1
- package/dist/app/console/KeyGenerateCommand.js.map +0 -1
- package/dist/app/console/StartCommand.js.map +0 -1
- package/dist/app/console/generate/GenerateControllerCommand.js.map +0 -1
- package/dist/app/console/generate/index.js +0 -2
- package/dist/app/console/generate/index.js.map +0 -1
- package/dist/app/console/index.d.ts +0 -9
- package/dist/app/console/index.js +0 -10
- package/dist/app/console/index.js.map +0 -1
- package/dist/app/console/migrate/GenerateMigrateCommand.js.map +0 -1
- package/dist/app/console/migrate/MigrateCommand.js.map +0 -1
- package/dist/app/console/migrate/MigrateRollbackCommand.js.map +0 -1
- package/dist/app/console/migrate/index.js +0 -4
- package/dist/app/console/migrate/index.js.map +0 -1
- package/dist/app/console/project/CreateProjectCommand.js.map +0 -1
- package/dist/bin/pashmak_cli.js.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/context.js.map +0 -1
- package/dist/facades.js.map +0 -1
- package/dist/helper.js.map +0 -1
- package/dist/http.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/logger.js.map +0 -1
- package/dist/mailer.js.map +0 -1
- package/dist/middlewares.js.map +0 -1
- package/dist/orm.js.map +0 -1
- package/dist/router.js.map +0 -1
- package/dist/sql.js.map +0 -1
- /package/dist/{DatabaseServiceProvider.d.ts → DatabaseServiceProvider.d.mts} +0 -0
- /package/dist/app/console/{DefaultCommand.d.ts → DefaultCommand.d.mts} +0 -0
- /package/dist/app/console/{KeyGenerateCommand.d.ts → KeyGenerateCommand.d.mts} +0 -0
- /package/dist/app/console/{StartCommand.d.ts → StartCommand.d.mts} +0 -0
- /package/dist/app/console/generate/{GenerateControllerCommand.d.ts → GenerateControllerCommand.d.mts} +0 -0
- /package/dist/app/console/migrate/{GenerateMigrateCommand.d.ts → GenerateMigrateCommand.d.mts} +0 -0
- /package/dist/app/console/migrate/{MigrateCommand.d.ts → MigrateCommand.d.mts} +0 -0
- /package/dist/app/console/migrate/{MigrateRollbackCommand.d.ts → MigrateRollbackCommand.d.mts} +0 -0
- /package/dist/app/console/project/{CreateProjectCommand.d.ts → CreateProjectCommand.d.mts} +0 -0
- /package/dist/bin/{pashmak_cli.d.ts → pashmak_cli.d.mts} +0 -0
- /package/dist/{config.d.ts → config.d.mts} +0 -0
- /package/dist/{context.d.ts → context.d.mts} +0 -0
- /package/dist/{facades.d.ts → facades.d.mts} +0 -0
- /package/dist/{helper.d.ts → helper.d.mts} +0 -0
- /package/dist/{http.d.ts → http.d.mts} +0 -0
- /package/dist/{logger.d.ts → logger.d.mts} +0 -0
- /package/dist/{mailer.d.ts → mailer.d.mts} +0 -0
- /package/dist/{middlewares.d.ts → middlewares.d.mts} +0 -0
- /package/dist/{orm.d.ts → orm.d.mts} +0 -0
- /package/dist/{router.d.ts → router.d.mts} +0 -0
- /package/dist/{sql.d.ts → sql.d.mts} +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/app/console/project/CreateProjectCommand.mts
|
|
32
|
+
var CreateProjectCommand_exports = {};
|
|
33
|
+
__export(CreateProjectCommand_exports, {
|
|
34
|
+
CreateProjectCommand: () => CreateProjectCommand
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(CreateProjectCommand_exports);
|
|
37
|
+
var import_clipanion = require("clipanion");
|
|
38
|
+
var import_change_case_all = require("change-case-all");
|
|
39
|
+
var import_path = __toESM(require("path"), 1);
|
|
40
|
+
var fs = __toESM(require("fs/promises"), 1);
|
|
41
|
+
var import_url = require("url");
|
|
42
|
+
var import_handlebars = __toESM(require("handlebars"), 1);
|
|
43
|
+
var import_child_process = require("child_process");
|
|
44
|
+
var import_meta = {};
|
|
45
|
+
var CreateProjectCommand = class extends import_clipanion.Command {
|
|
46
|
+
static {
|
|
47
|
+
__name(this, "CreateProjectCommand");
|
|
48
|
+
}
|
|
49
|
+
static paths = [[`create`, `project`]];
|
|
50
|
+
static usage = import_clipanion.Command.Usage({
|
|
51
|
+
category: `Project`,
|
|
52
|
+
description: `Create a new project`,
|
|
53
|
+
details: `
|
|
54
|
+
This command creates a new project with the specified name at the given path.
|
|
55
|
+
If no path is provided, the project will be created in the current directory.
|
|
56
|
+
`,
|
|
57
|
+
examples: [
|
|
58
|
+
[
|
|
59
|
+
`Create a new project in specified directory`,
|
|
60
|
+
`create project --path /path/to/my-project --git`
|
|
61
|
+
],
|
|
62
|
+
[
|
|
63
|
+
`Create a new project at a specific path with git initialized`,
|
|
64
|
+
`create project --path /path/to/my-project --git`
|
|
65
|
+
]
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
projectPath = import_clipanion.Option.String("--path", { required: true });
|
|
69
|
+
git = import_clipanion.Option.Boolean(`--git`, false, {
|
|
70
|
+
description: `Initialize a git repository in the new project`
|
|
71
|
+
});
|
|
72
|
+
async folderExists(folderPath) {
|
|
73
|
+
try {
|
|
74
|
+
const stats = await fs.stat(folderPath);
|
|
75
|
+
return stats.isDirectory();
|
|
76
|
+
} catch (error) {
|
|
77
|
+
if (error.code === "ENOENT") {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
throw error;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
async execute() {
|
|
84
|
+
const projectPath = import_path.default.join(this.projectPath);
|
|
85
|
+
try {
|
|
86
|
+
await fs.access(projectPath);
|
|
87
|
+
console.error(`Error: Directory ${projectPath} already exists.`);
|
|
88
|
+
return 1;
|
|
89
|
+
} catch {
|
|
90
|
+
}
|
|
91
|
+
await fs.mkdir(projectPath, { recursive: true });
|
|
92
|
+
console.log(`Created project directory at: ${projectPath}`);
|
|
93
|
+
const dirname = typeof __dirname === "undefined" ? import_path.default.dirname((0, import_url.fileURLToPath)(import_meta.url)) : __dirname;
|
|
94
|
+
let basePath = import_path.default.join(dirname, `./base_project`);
|
|
95
|
+
if (await this.folderExists(basePath) === false) {
|
|
96
|
+
basePath = import_path.default.join(dirname, `../app/console/project/base_project`);
|
|
97
|
+
}
|
|
98
|
+
console.log(`Using base project path: ${basePath}`);
|
|
99
|
+
const baseProjectPath = basePath;
|
|
100
|
+
await this.processTplFolder(baseProjectPath, projectPath, {});
|
|
101
|
+
console.log(`Copied base project files to: ${projectPath}`);
|
|
102
|
+
const packageJsonPath = import_path.default.join(projectPath, `package.json`);
|
|
103
|
+
const packageJson = JSON.parse(await fs.readFile(packageJsonPath, `utf-8`));
|
|
104
|
+
packageJson.name = import_change_case_all.Case.snake(import_path.default.basename(projectPath));
|
|
105
|
+
await fs.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2));
|
|
106
|
+
console.log(`Updated package.json with project name: ${packageJson.name}`);
|
|
107
|
+
if (this.git) {
|
|
108
|
+
try {
|
|
109
|
+
(0, import_child_process.execSync)(
|
|
110
|
+
'git init; git add --all; git commit --allow-empty -m "chore: first commit for pashmak"',
|
|
111
|
+
{
|
|
112
|
+
cwd: projectPath
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
} catch (error) {
|
|
116
|
+
console.error(`Failed to create project.`, error);
|
|
117
|
+
return 1;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
async processTplFolder(src, dest, data = {}) {
|
|
122
|
+
const files = await fs.readdir(src, { withFileTypes: true });
|
|
123
|
+
for (const file of files) {
|
|
124
|
+
const srcPath = import_path.default.join(src, file.name);
|
|
125
|
+
const destPath = file.isFile() && file.name.endsWith(".tpl") ? import_path.default.join(dest, file.name.substring(0, file.name.length - 4)) : import_path.default.join(dest, file.name);
|
|
126
|
+
if (file.isDirectory()) {
|
|
127
|
+
await fs.mkdir(destPath, { recursive: true });
|
|
128
|
+
await this.processTplFolder(srcPath, destPath, data);
|
|
129
|
+
} else if (file.name.endsWith(".tpl")) {
|
|
130
|
+
await this.processTplFile(srcPath, destPath, {});
|
|
131
|
+
} else {
|
|
132
|
+
throw new Error(
|
|
133
|
+
"unexpected non tpl file: " + srcPath + " " + file.name
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
async processTplFile(src, dest, data = {}) {
|
|
139
|
+
const compiledTemplate = import_handlebars.default.compile(
|
|
140
|
+
(await fs.readFile(src)).toString()
|
|
141
|
+
);
|
|
142
|
+
const template = await compiledTemplate(data);
|
|
143
|
+
await fs.writeFile(dest, template);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
147
|
+
0 && (module.exports = {
|
|
148
|
+
CreateProjectCommand
|
|
149
|
+
});
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
// src/bin/pashmak_cli.ts
|
|
28
28
|
var import_clipanion2 = require("clipanion");
|
|
29
29
|
|
|
30
|
-
// src/app/console/project/CreateProjectCommand.
|
|
30
|
+
// src/app/console/project/CreateProjectCommand.mts
|
|
31
31
|
var import_clipanion = require("clipanion");
|
|
32
32
|
var import_change_case_all = require("change-case-all");
|
|
33
33
|
var import_path = __toESM(require("path"), 1);
|
|
@@ -40,12 +40,7 @@ var CreateProjectCommand = class extends import_clipanion.Command {
|
|
|
40
40
|
static {
|
|
41
41
|
__name(this, "CreateProjectCommand");
|
|
42
42
|
}
|
|
43
|
-
static paths = [
|
|
44
|
-
[
|
|
45
|
-
`create`,
|
|
46
|
-
`project`
|
|
47
|
-
]
|
|
48
|
-
];
|
|
43
|
+
static paths = [[`create`, `project`]];
|
|
49
44
|
static usage = import_clipanion.Command.Usage({
|
|
50
45
|
category: `Project`,
|
|
51
46
|
description: `Create a new project`,
|
|
@@ -64,9 +59,7 @@ var CreateProjectCommand = class extends import_clipanion.Command {
|
|
|
64
59
|
]
|
|
65
60
|
]
|
|
66
61
|
});
|
|
67
|
-
projectPath = import_clipanion.Option.String("--path", {
|
|
68
|
-
required: true
|
|
69
|
-
});
|
|
62
|
+
projectPath = import_clipanion.Option.String("--path", { required: true });
|
|
70
63
|
git = import_clipanion.Option.Boolean(`--git`, false, {
|
|
71
64
|
description: `Initialize a git repository in the new project`
|
|
72
65
|
});
|
|
@@ -89,11 +82,9 @@ var CreateProjectCommand = class extends import_clipanion.Command {
|
|
|
89
82
|
return 1;
|
|
90
83
|
} catch {
|
|
91
84
|
}
|
|
92
|
-
await fs.mkdir(projectPath, {
|
|
93
|
-
recursive: true
|
|
94
|
-
});
|
|
85
|
+
await fs.mkdir(projectPath, { recursive: true });
|
|
95
86
|
console.log(`Created project directory at: ${projectPath}`);
|
|
96
|
-
|
|
87
|
+
const dirname = typeof __dirname === "undefined" ? import_path.default.dirname((0, import_url.fileURLToPath)(import_meta.url)) : __dirname;
|
|
97
88
|
let basePath = import_path.default.join(dirname, `./base_project`);
|
|
98
89
|
if (await this.folderExists(basePath) === false) {
|
|
99
90
|
basePath = import_path.default.join(dirname, `../app/console/project/base_project`);
|
|
@@ -109,9 +100,12 @@ var CreateProjectCommand = class extends import_clipanion.Command {
|
|
|
109
100
|
console.log(`Updated package.json with project name: ${packageJson.name}`);
|
|
110
101
|
if (this.git) {
|
|
111
102
|
try {
|
|
112
|
-
(0, import_child_process.execSync)(
|
|
113
|
-
|
|
114
|
-
|
|
103
|
+
(0, import_child_process.execSync)(
|
|
104
|
+
'git init; git add --all; git commit --allow-empty -m "chore: first commit for pashmak"',
|
|
105
|
+
{
|
|
106
|
+
cwd: projectPath
|
|
107
|
+
}
|
|
108
|
+
);
|
|
115
109
|
} catch (error) {
|
|
116
110
|
console.error(`Failed to create project.`, error);
|
|
117
111
|
return 1;
|
|
@@ -119,26 +113,26 @@ var CreateProjectCommand = class extends import_clipanion.Command {
|
|
|
119
113
|
}
|
|
120
114
|
}
|
|
121
115
|
async processTplFolder(src, dest, data = {}) {
|
|
122
|
-
const files = await fs.readdir(src, {
|
|
123
|
-
withFileTypes: true
|
|
124
|
-
});
|
|
116
|
+
const files = await fs.readdir(src, { withFileTypes: true });
|
|
125
117
|
for (const file of files) {
|
|
126
118
|
const srcPath = import_path.default.join(src, file.name);
|
|
127
119
|
const destPath = file.isFile() && file.name.endsWith(".tpl") ? import_path.default.join(dest, file.name.substring(0, file.name.length - 4)) : import_path.default.join(dest, file.name);
|
|
128
120
|
if (file.isDirectory()) {
|
|
129
|
-
await fs.mkdir(destPath, {
|
|
130
|
-
recursive: true
|
|
131
|
-
});
|
|
121
|
+
await fs.mkdir(destPath, { recursive: true });
|
|
132
122
|
await this.processTplFolder(srcPath, destPath, data);
|
|
133
123
|
} else if (file.name.endsWith(".tpl")) {
|
|
134
124
|
await this.processTplFile(srcPath, destPath, {});
|
|
135
125
|
} else {
|
|
136
|
-
throw new Error(
|
|
126
|
+
throw new Error(
|
|
127
|
+
"unexpected non tpl file: " + srcPath + " " + file.name
|
|
128
|
+
);
|
|
137
129
|
}
|
|
138
130
|
}
|
|
139
131
|
}
|
|
140
132
|
async processTplFile(src, dest, data = {}) {
|
|
141
|
-
const compiledTemplate = import_handlebars.default.compile(
|
|
133
|
+
const compiledTemplate = import_handlebars.default.compile(
|
|
134
|
+
(await fs.readFile(src)).toString()
|
|
135
|
+
);
|
|
142
136
|
const template = await compiledTemplate(data);
|
|
143
137
|
await fs.writeFile(dest, template);
|
|
144
138
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/config.mts
|
|
18
|
+
var config_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(config_exports);
|
|
20
|
+
__reExport(config_exports, require("@devbro/neko-config"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@devbro/neko-config")
|
|
24
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/context.mts
|
|
18
|
+
var context_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(context_exports);
|
|
20
|
+
__reExport(context_exports, require("@devbro/neko-context"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@devbro/neko-context")
|
|
24
|
+
});
|