rbac-shield 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/bin/init.js +1 -1
  2. package/package.json +2 -2
package/bin/init.js CHANGED
@@ -132,7 +132,7 @@ async function init() {
132
132
  if (!isInstalled) {
133
133
  console.log(chalk.blue('📦 Installing rbac-shield...'));
134
134
  try {
135
- execSync('npm install rbac-shield', { stdio: 'inherit' });
135
+ execSync('npm install rbac-shield@latest', { stdio: 'inherit' });
136
136
  console.log(chalk.green('✓ rbac-shield installed\n'));
137
137
  } catch (error) {
138
138
  console.error(chalk.red('✖ Failed to install rbac-shield'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rbac-shield",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "A production-ready, type-safe Role-Based Access Control (RBAC) system for Next.js applications with multi-tenant support",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -36,7 +36,7 @@
36
36
  "build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:types",
37
37
  "build:esm": "tsc --module esnext --outDir dist/esm && node scripts/rename-esm.js",
38
38
  "build:cjs": "tsc --module commonjs --outDir dist/cjs && node scripts/copy-cjs.js",
39
- "build:types": "tsc --declaration --emitDeclarationOnly --outDir dist",
39
+ "build:types": "tsc --declaration --emitDeclarationOnly --outDir dist && node scripts/copy-dts.js",
40
40
  "prepublishOnly": "npm run build"
41
41
  },
42
42
  "keywords": [