|
1 | 1 | { |
2 | 2 | "name": "permitio", |
3 | | - "version": "2.7.1-rc.0", |
| 3 | + "version": "2.7.5", |
4 | 4 | "description": "Node.js client library for the Permit.io full-stack permissions platform", |
5 | 5 | "type": "commonjs", |
6 | | - "main": "build/main/index.js", |
7 | | - "typings": "build/main/index.d.ts", |
8 | | - "module": "build/module/index.mjs", |
| 6 | + "main": "build/index.js", |
| 7 | + "typings": "build/index.d.ts", |
| 8 | + "module": "build/index.mjs", |
9 | 9 | "exports": { |
10 | 10 | ".": { |
11 | | - "types": "./build/module/index.d.ts", |
12 | | - "import": "./build/module/index.mjs", |
13 | | - "require": "./build/main/index.js" |
14 | | - }, |
15 | | - "./build/main/*": "./build/main/*", |
16 | | - "./build/module/*": "./build/module/*" |
| 11 | + "types": "./build/index.d.ts", |
| 12 | + "import": "./build/index.mjs", |
| 13 | + "require": "./build/index.js" |
| 14 | + } |
17 | 15 | }, |
18 | 16 | "repository": { |
19 | 17 | "type": "git", |
|
22 | 20 | "license": "MIT", |
23 | 21 | "keywords": [], |
24 | 22 | "scripts": { |
25 | | - "build": "run-p build:*", |
26 | | - "build:main": "tsc -p tsconfig.json", |
27 | | - "build:module": "tsc -p tsconfig.module.json && yarn rename:esm", |
| 23 | + "build": "run-s build:js build:types", |
| 24 | + "build:js": "tsup", |
| 25 | + "build:types": "tsc --emitDeclarationOnly --outDir build", |
| 26 | + "lint": "run-s lint:*", |
| 27 | + "lint:eslint": "eslint src --ext .ts", |
| 28 | + "lint:prettier": "prettier --config .prettierrc \"src/**/*.{ts,css,less,scss,js}\" --check", |
28 | 29 | "fix": "run-s fix:*", |
29 | 30 | "fix:prettier": "prettier --config .prettierrc \"src/**/*.{ts,css,less,scss,js}\" --write", |
30 | 31 | "fix:lint": "eslint src --ext .ts --fix", |
31 | 32 | "test": "run-s test:*", |
32 | | - "test:integration": "run-s build && ava --verbose src/**/endpoints/**", |
33 | | - "test:e2e:rbac": "run-s build && ava --verbose src/**/e2e/rbac.e2e.spec.ts", |
34 | | - "test:e2e:rebac": "run-s build && ava --verbose src/**/e2e/rebac.e2e.spec.ts", |
35 | | - "test:e2e:local_facts": "run-s build && ava --verbose src/**/e2e/local_facts.e2e.spec.ts", |
| 33 | + "test:integration": "run-s build && ava --verbose build/tests/endpoints/**/*.spec.js", |
| 34 | + "test:module-imports": "run-s build && ava --verbose build/tests/module-imports/**/*.spec.js", |
| 35 | + "test:e2e:rbac": "run-s build && ava --verbose build/tests/e2e/rbac.e2e.spec.js", |
| 36 | + "test:e2e:rebac": "run-s build && ava --verbose build/tests/e2e/rebac.e2e.spec.js", |
| 37 | + "test:e2e:local_facts": "run-s build && ava --verbose build/tests/e2e/local_facts.e2e.spec.js", |
36 | 38 | "check-cli": "run-s test diff-integration-tests check-integration-tests", |
37 | 39 | "check-integration-tests": "run-s check-integration-test:*", |
38 | 40 | "diff-integration-tests": "mkdir -p diff && rm -rf diff/test && cp -r test diff/test && rm -rf diff/test/test-*/.git && cd diff && git init --quiet && git add -A && git commit --quiet --no-verify --allow-empty -m 'WIP' && echo '\\n\\nCommitted most recent integration test output in the \"diff\" directory. Review the changes with \"cd diff && git diff HEAD\" or your preferred git diff viewer.'", |
|
46 | 48 | "docs": "typedoc", |
47 | 49 | "docs:watch": "typedoc --watch", |
48 | 50 | "version": "2.5.2", |
49 | | - "rename:esm": "/bin/bash ./scripts/rename-mjs.sh", |
50 | 51 | "reset-hard": "git clean -dfx && git reset --hard && yarn", |
51 | 52 | "prepare": "npm run build && husky install", |
52 | 53 | "prepare-release": "run-s reset-hard test cov:check doc:html version doc:publish", |
|
94 | 95 | "prettier": "^2.5.1", |
95 | 96 | "standard-version": "^9.0.0", |
96 | 97 | "ts-node": "^9.0.0", |
| 98 | + "tsup": "^8.5.0", |
97 | 99 | "typedoc": "^0.24.7", |
98 | 100 | "typescript": "^4.6.4" |
99 | 101 | }, |
100 | 102 | "files": [ |
101 | | - "build/main", |
102 | | - "build/module", |
| 103 | + "build", |
103 | 104 | "!**/*.spec.*", |
104 | 105 | "!**/*.json", |
105 | 106 | "CHANGELOG.md", |
|
110 | 111 | "failFast": true, |
111 | 112 | "failWithoutAssertions": false, |
112 | 113 | "timeout": "60s", |
113 | | - "typescript": { |
114 | | - "rewritePaths": { |
115 | | - "src/": "build/main/" |
116 | | - } |
117 | | - }, |
118 | 114 | "files": [ |
119 | | - "!build/module/**", |
120 | 115 | "!src/tests/fixtures.ts" |
121 | 116 | ] |
122 | 117 | }, |
|
0 commit comments