gravity-run 0.0.3 → 0.0.5
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/index.js +6 -3
- package/package.json +3 -1
package/dist/cli/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
2
|
import {
|
|
3
3
|
BadRequestError,
|
|
4
4
|
ForbiddenError,
|
|
@@ -154,9 +154,12 @@ function schemaToTypeString(schema) {
|
|
|
154
154
|
|
|
155
155
|
// src/runtime/loader.ts
|
|
156
156
|
import { pathToFileURL } from "node:url";
|
|
157
|
+
import { glob } from "glob";
|
|
157
158
|
async function loadActions(dir) {
|
|
158
|
-
const
|
|
159
|
-
|
|
159
|
+
const files = glob.sync(`**/*.ts`, {
|
|
160
|
+
cwd: dir,
|
|
161
|
+
ignore: `**/*.spec.ts`
|
|
162
|
+
});
|
|
160
163
|
const actions = [];
|
|
161
164
|
for (const file of files) {
|
|
162
165
|
const module = await import(pathToFileURL(file).href);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gravity-run",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "A framework for building scalable applications",
|
|
5
5
|
"homepage": "https://github.com/alihussnainrb/gravity#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"dev": "bunup --watch",
|
|
50
50
|
"lint": "biome check .",
|
|
51
51
|
"lint:fix": "biome check --write .",
|
|
52
|
+
"prerelease": "bun run build",
|
|
52
53
|
"release": "bumpp --commit --push --tag",
|
|
53
54
|
"test": "bun test",
|
|
54
55
|
"test:coverage": "bun test --coverage",
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
"chokidar": "^5.0.0",
|
|
78
79
|
"commander": "^14.0.3",
|
|
79
80
|
"cronbake": "^0.4.0",
|
|
81
|
+
"glob": "^13.0.1",
|
|
80
82
|
"inquirer": "^13.2.2",
|
|
81
83
|
"typebox": "^1.0.81"
|
|
82
84
|
}
|