Skip to content

Commit ba4836d

Browse files
committed
fix(release): include sql assets
1 parent 4a3eb6d commit ba4836d

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.pkg.config.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "@supabase/postgres-meta",
3+
"bin": {
4+
"postgres-meta": "bin/src/server/app.js"
5+
},
6+
"pkg": {
7+
"assets": ["bin/**/*.sql"],
8+
"scripts": ["node_modules/pg-format/lib/reserved.js"]
9+
}
10+
}

package.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"build:module": "tsc -p tsconfig.module.json && cpy 'src/lib/sql/*.sql' dist/module/sql",
2121
"build:server": "tsc -p tsconfig.server.json && cpy 'src/lib/sql/*.sql' bin/src/lib/sql",
2222
"start": "node bin/src/server/app.js | pino-pretty --colorize --levelFirst",
23-
"pkg": "NODE_ENV=production run-s build:server && pkg --out-path bin bin/src/server/app.js",
23+
"pkg": "NODE_ENV=production run-s build:server && pkg --out-path bin .pkg.config.json",
2424
"dev": "NODE_ENV=development run-s build start",
2525
"dev:watch": "nodemon",
2626
"test": "node -r esm ./node_modules/.bin/mocha 'test/**/*.js' --recursive "
@@ -67,10 +67,5 @@
6767
"*.test.js",
6868
"*.spec.js"
6969
]
70-
},
71-
"pkg": {
72-
"scripts": [
73-
"node_modules/pg-format/lib/reserved.js"
74-
]
7570
}
7671
}

0 commit comments

Comments
 (0)