crudora 0.1.0-alpha.4 → 0.1.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/LICENSE CHANGED
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
@@ -1,9 +1,9 @@
1
- # Database
2
- DATABASE_URL="file:./dev.db"
3
-
4
- # Server
5
- PORT=3000
6
- NODE_ENV=development
7
-
8
- # API
1
+ # Database
2
+ DATABASE_URL="file:./dev.db"
3
+
4
+ # Server
5
+ PORT=3000
6
+ NODE_ENV=development
7
+
8
+ # API
9
9
  API_BASE_PATH="/api"
package/package.json CHANGED
@@ -1,84 +1,94 @@
1
- {
2
- "name": "crudora",
3
- "version": "0.1.0-alpha.4",
4
- "main": "dist/index.js",
5
- "types": "dist/index.d.ts",
6
- "files": [
7
- "dist",
8
- "README.md",
9
- "LICENSE",
10
- "templates",
11
- "scripts"
12
- ],
13
- "scripts": {
14
- "build": "tsc && node scripts/copy-assets.js",
15
- "copy-assets": "node scripts/copy-assets.js",
16
- "build:watch": "tsc --watch",
17
- "clean": "rimraf dist",
18
- "prebuild": "npm run clean",
19
- "prepublishOnly": "npm run build",
20
- "dev": "ts-node src/index.ts",
21
- "test": "jest",
22
- "test:watch": "jest --watch",
23
- "test:coverage": "jest --coverage",
24
- "lint": "eslint src/**/*.ts",
25
- "format": "prettier --write src/**/*.ts",
26
- "postinstall": "node scripts/postinstall.js || echo 'Postinstall script failed, but continuing...'"
27
- },
28
- "keywords": [
29
- "crud",
30
- "api",
31
- "typescript",
32
- "prisma",
33
- "express",
34
- "framework",
35
- "backend",
36
- "rest-api",
37
- "orm",
38
- "validation",
39
- "zod",
40
- "decorators",
41
- "auto-generation"
42
- ],
43
- "repository": {
44
- "type": "git",
45
- "url": "https://github.com/suryamsj/crudora.git"
46
- },
47
- "bugs": {
48
- "url": "https://github.com/suryamsj/crudora/issues"
49
- },
50
- "homepage": "https://github.com/suryamsj/crudora#readme",
51
- "author": {
52
- "name": "Muhammad Surya J",
53
- "url": "https://suryamsj.my.id"
54
- },
55
- "license": "MIT",
56
- "description": "TypeScript framework for automated CRUD API generation with Prisma and Express",
57
- "dependencies": {
58
- "@types/express": "^5.0.3",
59
- "commander": "^14.0.0",
60
- "express": "^5.1.0",
61
- "jest-mock-extended": "^4.0.0",
62
- "reflect-metadata": "^0.2.2",
63
- "zod": "^4.0.5"
64
- },
65
- "devDependencies": {
66
- "@types/jest": "^30.0.0",
67
- "@types/node": "^24.0.15",
68
- "@types/supertest": "^6.0.3",
69
- "@typescript-eslint/eslint-plugin": "^8.38.0",
70
- "@typescript-eslint/parser": "^8.38.0",
71
- "eslint": "^9.31.0",
72
- "jest": "^30.0.4",
73
- "prettier": "^3.6.2",
74
- "rimraf": "^6.0.1",
75
- "supertest": "^7.1.3",
76
- "ts-jest": "^29.4.0",
77
- "ts-node": "^10.9.2",
78
- "typescript": "^5.8.3"
79
- },
80
- "peerDependencies": {
81
- "@prisma/client": "^6.12.0",
82
- "prisma": "^6.12.0"
83
- }
84
- }
1
+ {
2
+ "name": "crudora",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.cjs",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "LICENSE",
20
+ "templates",
21
+ "scripts"
22
+ ],
23
+ "scripts": {
24
+ "build": "tsc && node scripts/copy-assets.js",
25
+ "copy-assets": "node scripts/copy-assets.js",
26
+ "build:watch": "tsc --watch",
27
+ "clean": "rimraf dist",
28
+ "prebuild": "npm run clean",
29
+ "prepublishOnly": "npm run build",
30
+ "dev": "ts-node src/index.ts",
31
+ "test": "jest",
32
+ "test:watch": "jest --watch",
33
+ "test:coverage": "jest --coverage",
34
+ "lint": "eslint src/**/*.ts",
35
+ "format": "prettier --write src/**/*.ts",
36
+ "postinstall": "node scripts/postinstall.js || echo 'Postinstall script failed, but continuing...'"
37
+ },
38
+ "keywords": [
39
+ "crud",
40
+ "api",
41
+ "typescript",
42
+ "prisma",
43
+ "express",
44
+ "framework",
45
+ "backend",
46
+ "rest-api",
47
+ "orm",
48
+ "validation",
49
+ "zod",
50
+ "decorators",
51
+ "auto-generation"
52
+ ],
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "git+https://github.com/suryamsj/crudora.git"
56
+ },
57
+ "bugs": {
58
+ "url": "https://github.com/suryamsj/crudora/issues"
59
+ },
60
+ "homepage": "https://github.com/suryamsj/crudora#readme",
61
+ "author": {
62
+ "name": "Muhammad Surya J",
63
+ "url": "https://suryamsj.my.id"
64
+ },
65
+ "license": "MIT",
66
+ "description": "TypeScript framework for automated CRUD API generation with Prisma and Express",
67
+ "dependencies": {
68
+ "@types/express": "^5.0.3",
69
+ "commander": "^14.0.0",
70
+ "express": "^5.1.0",
71
+ "jest-mock-extended": "^4.0.0",
72
+ "reflect-metadata": "^0.2.2",
73
+ "zod": "^4.0.5"
74
+ },
75
+ "devDependencies": {
76
+ "@types/jest": "^30.0.0",
77
+ "@types/node": "^24.0.15",
78
+ "@types/supertest": "^6.0.3",
79
+ "@typescript-eslint/eslint-plugin": "^8.38.0",
80
+ "@typescript-eslint/parser": "^8.38.0",
81
+ "eslint": "^9.31.0",
82
+ "jest": "^30.0.4",
83
+ "prettier": "^3.6.2",
84
+ "rimraf": "^6.0.1",
85
+ "supertest": "^7.1.3",
86
+ "ts-jest": "^29.4.0",
87
+ "ts-node": "^10.9.2",
88
+ "typescript": "^5.8.3"
89
+ },
90
+ "peerDependencies": {
91
+ "@prisma/client": "^6.12.0",
92
+ "prisma": "^6.12.0"
93
+ }
94
+ }
@@ -1,9 +1,9 @@
1
- # Database
2
- DATABASE_URL="file:./dev.db"
3
-
4
- # Server
5
- PORT=3000
6
- NODE_ENV=development
7
-
8
- # API
1
+ # Database
2
+ DATABASE_URL="file:./dev.db"
3
+
4
+ # Server
5
+ PORT=3000
6
+ NODE_ENV=development
7
+
8
+ # API
9
9
  API_BASE_PATH="/api"