docs: add LICENSE, NOTICE, README, CHANGELOG, and npm metadata

The public repo shipped with no license, readme, or changelog. Add them
plus standard package metadata (license field, keywords, author,
homepage, repository, bugs) so the Gitea/npm pages present the package
professionally. README and CHANGELOG describe the exports this repo
actually contains.
This commit is contained in:
2026-07-23 13:34:21 +02:00
parent b6b6f7c4d5
commit e470b670c2
5 changed files with 334 additions and 2 deletions
+23 -2
View File
@@ -2,7 +2,28 @@
"name": "@crudy/pgmorbac",
"version": "0.1.0",
"type": "module",
"description": "Crudy pgmorbac — Multi-OrBAC permission helpers for Fastify and PostgreSQL",
"description": "Crudy pgmorbac - Multi-OrBAC permission helpers for Fastify and PostgreSQL",
"license": "Apache-2.0",
"keywords": [
"morbac",
"orbac",
"rbac",
"authorization",
"access-control",
"postgresql",
"fastify",
"rls",
"multi-tenant"
],
"author": "Marc Villain",
"homepage": "https://pgmorbac.villains.fr",
"repository": {
"type": "git",
"url": "https://git.villains.fr/crudy/pgmorbac-node.git"
},
"bugs": {
"url": "https://git.villains.fr/crudy/pgmorbac-node/issues"
},
"exports": {
".": { "types": "./dist/index.d.ts", "source": "./src/index.ts", "default": "./dist/index.js" },
"./permissions": { "types": "./dist/permissions.d.ts", "source": "./src/permissions.ts", "default": "./dist/permissions.js" },
@@ -13,7 +34,7 @@
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": ["dist", "package.json"],
"files": ["dist", "package.json", "README.md", "CHANGELOG.md", "LICENSE", "NOTICE"],
"scripts": {
"build": "tsc",
"prepack": "npm run build"