@objectql/create 4.2.0 → 4.2.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/bin.js +1 -1
- package/package.json +3 -2
- package/templates/enterprise/CHANGELOG.md +10 -0
- package/templates/enterprise/package.json +1 -1
- package/templates/hello-world/CHANGELOG.md +8 -0
- package/templates/hello-world/package.json +1 -1
- package/templates/starter/CHANGELOG.md +10 -0
- package/templates/starter/package.json +1 -1
- package/templates/starter/src/modules/projects/projects.hook.ts +3 -2
package/dist/bin.js
CHANGED
|
@@ -124,7 +124,7 @@ program
|
|
|
124
124
|
try {
|
|
125
125
|
await fs.writeFile(path.join(root, '.gitignore'), `node_modules/\ndist/\n*.log\n.DS_Store\n*.sqlite3\n.env\n.env.local\n`);
|
|
126
126
|
}
|
|
127
|
-
catch { }
|
|
127
|
+
catch (_e) { /* .gitignore write failure is non-critical */ }
|
|
128
128
|
console.log(chalk_1.default.green('\n✅ Done! Now run:\n'));
|
|
129
129
|
console.log(chalk_1.default.cyan(` cd ${targetDir}`));
|
|
130
130
|
console.log(chalk_1.default.cyan(` npm install`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@objectql/create",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Create ObjectQL apps with one command",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-objectql": "./dist/bin.js"
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "tsc && node scripts/copy-templates.js",
|
|
25
|
-
"copy-templates": "node scripts/copy-templates.js"
|
|
25
|
+
"copy-templates": "node scripts/copy-templates.js",
|
|
26
|
+
"test": "vitest run"
|
|
26
27
|
}
|
|
27
28
|
}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @objectql/starter-enterprise
|
|
2
2
|
|
|
3
|
+
## 4.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a0aa26a]
|
|
8
|
+
- @objectql/types@4.2.1
|
|
9
|
+
- @objectql/core@4.2.1
|
|
10
|
+
- @objectql/platform-node@4.2.1
|
|
11
|
+
- @objectql/driver-sql@4.2.1
|
|
12
|
+
|
|
3
13
|
## 5.0.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @objectql/starter-basic
|
|
2
2
|
|
|
3
|
+
## 4.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a0aa26a]
|
|
8
|
+
- @objectql/types@4.2.1
|
|
9
|
+
- @objectql/core@4.2.1
|
|
10
|
+
- @objectql/platform-node@4.2.1
|
|
11
|
+
- @objectql/driver-sql@4.2.1
|
|
12
|
+
|
|
3
13
|
## 5.0.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { ObjectHookDefinition } from '@objectql/types';
|
|
10
|
+
import { Projects } from '../../types/projects';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Project Hooks - Business Logic Implementation
|
|
@@ -14,7 +15,7 @@ import { ObjectHookDefinition } from '@objectql/types';
|
|
|
14
15
|
* This file implements all lifecycle hooks for the Project object.
|
|
15
16
|
* Hooks are automatically triggered during CRUD operations.
|
|
16
17
|
*/
|
|
17
|
-
const hooks: ObjectHookDefinition = {
|
|
18
|
+
const hooks: ObjectHookDefinition<Projects> = {
|
|
18
19
|
/**
|
|
19
20
|
* beforeCreate Hook
|
|
20
21
|
*
|
|
@@ -42,7 +43,7 @@ const hooks: ObjectHookDefinition = {
|
|
|
42
43
|
// Auto-assign owner from user context
|
|
43
44
|
// Note: Framework automatically sets created_by, but we also need owner field
|
|
44
45
|
if (user?.id) {
|
|
45
|
-
data.owner = user.id;
|
|
46
|
+
data.owner = String(user.id);
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
// Set default status to planned if not provided
|