|
2 | 2 | "name": "@nextcloud/auth", |
3 | 3 | "version": "2.2.1", |
4 | 4 | "description": "Nextcloud helpers related to authentication and the current user", |
5 | | - "main": "dist/index.js", |
| 5 | + "type": "module", |
| 6 | + "main": "dist/index.cjs", |
6 | 7 | "types": "dist/index.d.ts", |
7 | 8 | "exports": { |
8 | 9 | "types": "./dist/index.d.ts", |
9 | | - "import": "./dist/index.es.mjs", |
10 | | - "require": "./dist/index.js" |
| 10 | + "import": "./dist/index.mjs", |
| 11 | + "require": "./dist/index.cjs" |
11 | 12 | }, |
12 | 13 | "files": [ |
13 | 14 | "dist/" |
14 | 15 | ], |
15 | 16 | "scripts": { |
16 | | - "build": "rollup --config rollup.config.mjs", |
| 17 | + "build": "vite --mode production build", |
17 | 18 | "build:doc": "typedoc --out dist/doc lib/index.ts && touch dist/doc/.nojekyll", |
18 | | - "check-types": "tsc --noEmit", |
| 19 | + "dev": "vite --mode development run --watch", |
19 | 20 | "dev": "rollup --config rollup.config.mjs --watch", |
20 | 21 | "lint": "eslint lib *js", |
21 | 22 | "lint:fix": "eslint --fix lib", |
|
38 | 39 | "devDependencies": { |
39 | 40 | "@nextcloud/eslint-config": "^8.3.0", |
40 | 41 | "@nextcloud/typings": "^1.8.0", |
41 | | - "@rollup/plugin-typescript": "^11.1.6", |
42 | 42 | "eslint": "^8.57.0", |
43 | | - "jest": "^29.7.0", |
44 | | - "jest-environment-jsdom": "^29.7.0", |
45 | | - "rollup": "^4.16.0", |
46 | | - "tslib": "^2.6.2", |
47 | 43 | "typedoc": "^0.25.13", |
48 | | - "typescript": "^5.4.5" |
| 44 | + "typescript": "^5.4.5", |
| 45 | + "vite": "^5.2.10" |
49 | 46 | }, |
50 | 47 | "engines": { |
51 | 48 | "node": "^20.0.0", |
|
0 commit comments