gravity-run 0.0.4 → 0.0.6
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 +4 -3
- package/package.json +2 -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,
|
|
@@ -153,13 +153,14 @@ function schemaToTypeString(schema) {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
// src/runtime/loader.ts
|
|
156
|
-
import { pathToFileURL } from "node:url";
|
|
157
156
|
async function loadActions(dir) {
|
|
158
157
|
const glob = new Bun.Glob(`${dir}/**/*.ts`);
|
|
159
158
|
const files = glob.scanSync();
|
|
159
|
+
globalLogger.info("Loading actions from", { files });
|
|
160
160
|
const actions = [];
|
|
161
161
|
for (const file of files) {
|
|
162
|
-
const module = await import(pathToFileURL(file).href);
|
|
162
|
+
const module = await import(Bun.pathToFileURL(file).href);
|
|
163
|
+
globalLogger.info("Loading action", { file });
|
|
163
164
|
for (const exported of Object.values(module)) {
|
|
164
165
|
if (isAction(exported)) {
|
|
165
166
|
actions.push(exported);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gravity-run",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
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",
|