feat: npm package @crudy/pgmorbac ships the extension SQL

The package carries the install and upgrade scripts, built from src/ on prepack
(sql/ is not committed), with extensionSql(), upgradeScripts(), version and sqlDir.
This commit is contained in:
2026-10-02 23:59:58 +02:00
parent 697e8bd682
commit 8385cea640
7 changed files with 141 additions and 3 deletions
+48 -3
View File
@@ -1,13 +1,58 @@
{
"name": "pgmorbac-release-tools",
"name": "@crudy/pgmorbac",
"version": "1.0.0",
"private": true,
"type": "module",
"description": "Release tooling for the pgmorbac PostgreSQL extension (build + sign + publish the PGXN distribution).",
"description": "Multi-OrBAC for PostgreSQL: the pgmorbac extension SQL, packaged for Node.js projects and migration runners",
"keywords": [
"pgmorbac",
"morbac",
"orbac",
"rbac",
"authorization",
"access-control",
"postgresql",
"postgresql-extension",
"row-level-security",
"multi-tenant"
],
"author": "Marc Villain",
"license": "MIT",
"homepage": "https://pgmorbac.crudy.fr",
"repository": {
"type": "git",
"url": "https://github.com/crudylabs/pgmorbac.git"
},
"bugs": {
"url": "https://github.com/crudylabs/pgmorbac/issues"
},
"exports": {
".": {
"types": "./index.d.ts",
"default": "./index.js"
}
},
"main": "./index.js",
"types": "./index.d.ts",
"files": [
"index.js",
"index.d.ts",
"sql",
"pgmorbac.control",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"engines": {
"node": ">=18"
},
"scripts": {
"prepack": "node scripts/build-package-sql.mjs",
"dist": "node scripts/build-dist.mjs",
"release": "node scripts/build-dist.mjs && node scripts/gitea-release.mjs"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"jose": "^5"
}