|
1 | 1 | { |
2 | 2 | "name": "solid-testing-library", |
3 | | - "version": "0.4.0", |
| 3 | + "version": "0.4.1", |
4 | 4 | "description": "Simple and complete Solid testing utilities that encourage good testing practices.", |
5 | | - "main": "./dist/index.cjs", |
| 5 | + "type": "module", |
| 6 | + "main": "./dist/index.js", |
6 | 7 | "module": "./dist/index.mjs", |
7 | 8 | "types": "./dist/index.d.ts", |
8 | 9 | "exports": { |
9 | 10 | ".": { |
10 | | - "require": "./dist/index.cjs", |
11 | | - "import": "./dist/index.mjs" |
| 11 | + "import": "./dist/index.mjs", |
| 12 | + "require": "./dist/index.js" |
12 | 13 | } |
13 | 14 | }, |
14 | 15 | "license": "MIT", |
|
41 | 42 | ], |
42 | 43 | "scripts": { |
43 | 44 | "prepublishOnly": "npm run build", |
44 | | - "clean": "rimraf dist", |
45 | | - "build": "tsc --project tsconfig.build.json; tsc --project tsconfig.build.esm.json; node ./manage-dist.js", |
46 | | - "test": "jest tests", |
| 45 | + "build": "tsup src/index.ts --format esm,cjs --dts --clean", |
| 46 | + "test": "vitest", |
47 | 47 | "test:watch": "npm test --watch", |
48 | 48 | "test:coverage": "npm test -- --coverage", |
49 | 49 | "setup": "npm install && npm run validate", |
50 | | - "validate": "npm run test:coverage && npm run clean && npm run build", |
| 50 | + "validate": "npm run test:coverage && npm run build", |
51 | 51 | "report:coverage": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" |
52 | 52 | }, |
53 | 53 | "dependencies": { |
54 | 54 | "@testing-library/dom": "^8.19.0" |
55 | 55 | }, |
56 | 56 | "devDependencies": { |
57 | | - "@babel/cli": "^7.19.3", |
58 | | - "@babel/core": "^7.19.6", |
59 | | - "@babel/preset-env": "^7.19.4", |
60 | | - "@babel/preset-typescript": "7.18.6", |
61 | 57 | "@testing-library/jest-dom": "^5.16.5", |
62 | 58 | "@testing-library/user-event": "^14.4.3", |
63 | | - "@types/jest": "^29.2.1", |
64 | | - "babel-jest": "^29.2.2", |
65 | | - "babel-preset-solid": "^1.6.1", |
66 | 59 | "coveralls": "^3.1.1", |
67 | | - "jest": "^29.2.2", |
68 | | - "jest-environment-jsdom": "^29.2.2", |
| 60 | + "jsdom": "^20.0.2", |
69 | 61 | "prettier": "^2.7.1", |
70 | 62 | "pretty-format": "^29.2.1", |
71 | | - "rimraf": "^3.0.2", |
72 | | - "solid-jest": "^0.2.0", |
73 | 63 | "solid-js": "^1.6.1", |
74 | | - "typescript": "^4.8.4" |
| 64 | + "tsup": "6.4.0", |
| 65 | + "typescript": "^4.8.4", |
| 66 | + "vite-plugin-solid": "^2.4.0", |
| 67 | + "vitest": "^0.24.5", |
| 68 | + "@vitest/coverage-c8": "^0.24.5" |
75 | 69 | }, |
76 | 70 | "peerDependencies": { |
77 | 71 | "solid-js": ">=1.0.0" |
|
0 commit comments