@malloy-publisher/server 0.0.180-dev-v1 → 0.0.181-dev-v1
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/build.ts +2 -2
- package/dist/server.js +1 -1
- package/package.json +4 -4
package/build.ts
CHANGED
|
@@ -28,10 +28,10 @@ await build({
|
|
|
28
28
|
|
|
29
29
|
fs.cpSync("../app/dist", "./dist/app", { recursive: true });
|
|
30
30
|
|
|
31
|
-
// Add shebang to server.js for npx compatibility
|
|
31
|
+
// Add shebang to server.js for npx/bunx compatibility
|
|
32
32
|
const serverJsPath = "./dist/server.js";
|
|
33
33
|
const serverJsContent = fs.readFileSync(serverJsPath, "utf8");
|
|
34
|
-
const shebangContent = "#!/usr/bin/env
|
|
34
|
+
const shebangContent = "#!/usr/bin/env bun\n" + serverJsContent;
|
|
35
35
|
fs.writeFileSync(serverJsPath, shebangContent);
|
|
36
36
|
|
|
37
37
|
// Make the file executable
|
package/dist/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloy-publisher/server",
|
|
3
3
|
"description": "Malloy Publisher Server",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.181-dev-v1",
|
|
5
5
|
"main": "dist/server.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"malloy-publisher": "dist/server.js"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"test:integration": "bun test --timeout 100000 tests",
|
|
20
20
|
"build": "bun generate-api-types && bun build:app && NODE_ENV=production bun run build.ts",
|
|
21
21
|
"build:server-only": "bun generate-api-types && NODE_ENV=production bun run build.ts",
|
|
22
|
-
"start": "NODE_ENV=production
|
|
23
|
-
"start:init": "NODE_ENV=production
|
|
22
|
+
"start": "NODE_ENV=production bun run ./dist/server.js",
|
|
23
|
+
"start:init": "NODE_ENV=production bun run ./dist/server.js --init",
|
|
24
24
|
"start:dev": "NODE_ENV=development bun --watch src/server.ts",
|
|
25
25
|
"start:dev:init": "NODE_ENV=development bun --watch src/server.ts --init",
|
|
26
|
-
"start:instrumented": "
|
|
26
|
+
"start:instrumented": "bun --preload ./dist/instrumentation.js ./dist/server.js",
|
|
27
27
|
"lint": "bunx eslint \"./src/**/*.ts\"",
|
|
28
28
|
"format": "bunx prettier --write '**/*.{ts,tsx}'",
|
|
29
29
|
"build:app": "cd ../app && NODE_ENV=production bunx vite build",
|