|
1 | 1 | { |
2 | | - "name": "@testing-library/svelte", |
3 | | - "version": "0.0.0-semantically-released", |
4 | | - "description": "Simple and complete Svelte testing utilities that encourage good testing practices.", |
5 | | - "main": "src/index.js", |
6 | | - "exports": { |
7 | | - ".": { |
8 | | - "types": "./types/index.d.ts", |
9 | | - "default": "./src/index.js" |
10 | | - }, |
11 | | - "./svelte5": { |
12 | | - "types": "./types/index.d.ts", |
13 | | - "default": "./src/index.js" |
14 | | - }, |
15 | | - "./vitest": { |
16 | | - "types": "./types/vitest.d.ts", |
17 | | - "default": "./src/vitest.js" |
18 | | - }, |
19 | | - "./vite": { |
20 | | - "types": "./types/vite.d.ts", |
21 | | - "default": "./src/vite.js" |
22 | | - } |
23 | | - }, |
| 2 | + "name": "@testing-library/svelte-repo", |
| 3 | + "private": true, |
24 | 4 | "type": "module", |
25 | | - "types": "types/index.d.ts", |
26 | 5 | "license": "MIT", |
27 | | - "homepage": "https://github.com/testing-library/svelte-testing-library#readme", |
28 | | - "repository": { |
29 | | - "type": "git", |
30 | | - "url": "git+https://github.com/testing-library/svelte-testing-library.git" |
31 | | - }, |
32 | | - "bugs": { |
33 | | - "url": "https://github.com/testing-library/svelte-testing-library/issues" |
34 | | - }, |
35 | | - "engines": { |
36 | | - "node": ">= 10" |
37 | | - }, |
38 | | - "keywords": [ |
39 | | - "testing", |
40 | | - "svelte", |
41 | | - "ui", |
42 | | - "dom", |
43 | | - "jsdom", |
44 | | - "unit", |
45 | | - "integration", |
46 | | - "functional", |
47 | | - "end-to-end", |
48 | | - "e2e" |
49 | | - ], |
50 | | - "files": [ |
51 | | - "src", |
52 | | - "types" |
53 | | - ], |
54 | 6 | "scripts": { |
55 | | - "all": "npm-run-all contributors:generate docs format types build test:vitest:* test:jest test:examples", |
56 | | - "all:legacy": "npm-run-all types:legacy test:vitest:* test:jest", |
57 | | - "docs": "remark --output --use remark-toc --use remark-code-import --use unified-prettier README.md examples", |
| 7 | + "all": "pnpm contributors:generate && pnpm build && pnpm format && pnpm test:all", |
| 8 | + "all:legacy": "pnpm build:types && pnpm test:all:legacy", |
| 9 | + "docs": "", |
58 | 10 | "lint": "prettier . --check && eslint .", |
59 | 11 | "format": "prettier . --write && eslint . --fix", |
60 | | - "setup": "npm run install:5 && npm run all", |
| 12 | + "setup": "pnpm install:5 && pnpm all", |
61 | 13 | "test": "vitest run --coverage", |
62 | 14 | "test:watch": "vitest", |
63 | 15 | "test:vitest:jsdom": "vitest run tests --coverage --environment jsdom", |
64 | 16 | "test:vitest:happy-dom": "vitest run tests --coverage --environment happy-dom", |
65 | | - "test:jest": "npx --node-options=\"--experimental-vm-modules --no-warnings\" jest --coverage", |
| 17 | + "test:jest": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --coverage", |
66 | 18 | "test:examples": "vitest run examples --coverage", |
67 | | - "types": "svelte-check", |
68 | | - "types:legacy": "svelte-check --tsconfig tsconfig.legacy.json", |
69 | | - "build": "tsc -p tsconfig.build.json && cp src/component-types.d.ts types", |
| 19 | + "test:types": "svelte-check --tsconfig=tests/tsconfig.json", |
| 20 | + "test:types:legacy": "svelte-check --tsconfig=tests/tsconfig.legacy.json", |
| 21 | + "test:all": "pnpm test:types && pnpm test:vitest:jsdom && pnpm test:vitest:happy-dom && pnpm test:jest && pnpm test:examples", |
| 22 | + "test:all:legacy": "pnpm test:types:legacy && pnpm test:vitest:jsdom && pnpm test:vitest:happy-dom && pnpm test:jest", |
| 23 | + "build": "pnpm build:types && pnpm build:docs", |
| 24 | + "build:types": "tsc --build && cp packages/svelte/src/component-types.d.ts packages/svelte/types", |
| 25 | + "build:docs": "remark --output --use remark-toc --use remark-code-import --use unified-prettier README.md examples && cp -f README.md packages/svelte", |
70 | 26 | "contributors:add": "all-contributors add", |
71 | 27 | "contributors:generate": "all-contributors generate", |
72 | 28 | "preview-release": "./scripts/preview-release", |
73 | 29 | "install:3": "./scripts/install-dependencies 3", |
74 | 30 | "install:4": "./scripts/install-dependencies 4", |
75 | 31 | "install:5": "./scripts/install-dependencies 5" |
76 | 32 | }, |
77 | | - "peerDependencies": { |
78 | | - "svelte": "^3 || ^4 || ^5 || ^5.0.0-next.0", |
79 | | - "vite": "*", |
80 | | - "vitest": "*" |
81 | | - }, |
82 | | - "peerDependenciesMeta": { |
83 | | - "vite": { |
84 | | - "optional": true |
85 | | - }, |
86 | | - "vitest": { |
87 | | - "optional": true |
88 | | - } |
89 | | - }, |
90 | 33 | "dependencies": { |
91 | | - "@testing-library/dom": "9.x.x || 10.x.x" |
| 34 | + "@testing-library/svelte": "workspace:*" |
92 | 35 | }, |
93 | 36 | "devDependencies": { |
94 | 37 | "@eslint/js": "^9.26.0", |
95 | 38 | "@jest/globals": "^29.7.0", |
96 | 39 | "@sveltejs/vite-plugin-svelte": "^5.0.3", |
| 40 | + "@testing-library/dom": "9.x.x || 10.x.x", |
97 | 41 | "@testing-library/jest-dom": "^6.6.3", |
98 | 42 | "@testing-library/user-event": "^14.6.1", |
99 | 43 | "@vitest/coverage-v8": "^3.1.3", |
|
128 | 72 | "unified-prettier": "^2.0.1", |
129 | 73 | "vite": "^6.3.5", |
130 | 74 | "vitest": "^3.1.3" |
131 | | - } |
| 75 | + }, |
| 76 | + "packageManager": "[email protected]+sha512.bf049efe995b28f527fd2b41ae0474ce29186f7edcb3bf545087bd61fbbebb2bf75362d1307fda09c2d288e1e499787ac12d4fcb617a974718a6051f2eee741c" |
132 | 77 | } |
0 commit comments