|
31 | 31 | "require": "./shims/dist/index.cjs", |
32 | 32 | "import": "./shims/dist/index.js" |
33 | 33 | }, |
34 | | - "./shims/banner": { |
35 | | - "require": "./shims/banner/dist/index.cjs", |
36 | | - "import": "./shims/banner/dist/index.js" |
37 | | - }, |
38 | 34 | "./shims/buffer": { |
39 | 35 | "require": "./shims/buffer/dist/index.cjs", |
40 | 36 | "import": "./shims/buffer/dist/index.js" |
41 | 37 | }, |
| 38 | + "./shims/buffer/": { |
| 39 | + "require": "./shims/buffer/dist/index.cjs", |
| 40 | + "import": "./shims/buffer/dist/index.js" |
| 41 | + }, |
42 | 42 | "./shims/global": { |
43 | 43 | "require": "./shims/global/dist/index.cjs", |
44 | 44 | "import": "./shims/global/dist/index.js" |
45 | 45 | }, |
| 46 | + "./shims/global/": { |
| 47 | + "require": "./shims/global/dist/index.cjs", |
| 48 | + "import": "./shims/global/dist/index.js" |
| 49 | + }, |
46 | 50 | "./shims/process": { |
47 | 51 | "require": "./shims/process/dist/index.cjs", |
48 | 52 | "import": "./shims/process/dist/index.js" |
| 53 | + }, |
| 54 | + "./shims/process/": { |
| 55 | + "require": "./shims/process/dist/index.cjs", |
| 56 | + "import": "./shims/process/dist/index.js" |
49 | 57 | } |
50 | 58 | }, |
51 | 59 | "main": "./dist/index.cjs", |
|
56 | 64 | "shims" |
57 | 65 | ], |
58 | 66 | "scripts": { |
59 | | - "build": "run-s build:core build:shims build:banner build:types", |
60 | | - "build:banner": "vite-node ./shims/banner/build.ts", |
| 67 | + "build": "run-s build:core build:shims build:types", |
61 | 68 | "build:core": "vite build", |
62 | 69 | "build:shims": "run-p build:shims:*", |
63 | 70 | "build:shims:buffer": "vite build -c ./shims/vite.config.ts ./shims/buffer", |
|
66 | 73 | "build:types": "run-s typecheck", |
67 | 74 | "lint": "eslint .", |
68 | 75 | "lint:fix": "eslint --fix .", |
69 | | - "test": "run-s test:build", |
| 76 | + "test": "run-p test:build test:unit", |
70 | 77 | "test:build": "run-p test:build:*", |
71 | 78 | "test:build:react": "pnpm -C ./examples/react run build", |
72 | 79 | "test:build:vanilla": "pnpm -C ./examples/vanilla run build", |
73 | 80 | "test:build:vue": "pnpm -C ./examples/vue run build", |
74 | 81 | "test:dev:react": "pnpm -C ./examples/react run dev", |
75 | 82 | "test:dev:vanilla": "pnpm -C ./examples/vanilla run dev", |
76 | 83 | "test:dev:vue": "pnpm -C ./examples/vue run dev", |
| 84 | + "test:unit": "vitest run --dir ./test", |
77 | 85 | "typecheck": "run-p typecheck:*", |
78 | 86 | "typecheck:core": "tsc", |
79 | 87 | "typecheck:react": "pnpm -C ./examples/react run typecheck", |
|
102 | 110 | "vite-node": "^0.34.6", |
103 | 111 | "vite-plugin-externalize-deps": "^0.1.5", |
104 | 112 | "vite-plugin-inspect": "^0.7.42", |
105 | | - "vite-plugin-node-polyfills": "workspace:*" |
| 113 | + "vite-plugin-node-polyfills": "workspace:*", |
| 114 | + "vitest": "^1.1.0" |
106 | 115 | }, |
107 | 116 | "publishConfig": { |
108 | 117 | "access": "public" |
|
0 commit comments