|
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": "rollup --config rollup.config.mjs --watch", |
20 | | - "lint": "eslint lib *js", |
21 | | - "lint:fix": "eslint --fix lib", |
22 | | - "test": "jest", |
23 | | - "test:watch": "jest --watchAll" |
| 19 | + "dev": "vite --mode development run --watch", |
| 20 | + "lint": "eslint lib test *.ts", |
| 21 | + "lint:fix": "eslint --fix lib test", |
| 22 | + "test": "vitest run", |
| 23 | + "test:coverage": "vitest run --coverage", |
| 24 | + "test:watch": "vitest watch" |
24 | 25 | }, |
25 | 26 | "keywords": [ |
26 | 27 | "nextcloud" |
|
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 | + "@nextcloud/vite-config": "^1.2.2", |
| 43 | + "@vitest/coverage-v8": "^1.5.0", |
42 | 44 | "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", |
| 45 | + "happy-dom": "^14.7.1", |
47 | 46 | "typedoc": "^0.25.13", |
48 | | - "typescript": "^5.4.5" |
| 47 | + "typescript": "^5.4.5", |
| 48 | + "vite": "^5.2.10", |
| 49 | + "vitest": "^1.5.0" |
49 | 50 | }, |
50 | 51 | "engines": { |
51 | 52 | "node": "^20.0.0", |
|
0 commit comments