|
3 | 3 | "version": "3.5.1",
|
4 | 4 | "description": "state management for Vue.js",
|
5 | 5 | "main": "dist/vuex.common.js",
|
| 6 | + "exports": { |
| 7 | + ".": { |
| 8 | + "require": "./dist/vuex.common.js", |
| 9 | + "import": "./dist/vuex.mjs" |
| 10 | + }, |
| 11 | + "./": "./" |
| 12 | + }, |
6 | 13 | "module": "dist/vuex.esm.js",
|
7 | 14 | "unpkg": "dist/vuex.js",
|
8 | 15 | "jsdelivr": "dist/vuex.js",
|
|
21 | 28 | "build:main": "node scripts/build-main.js",
|
22 | 29 | "build:logger": "node scripts/build-logger.js",
|
23 | 30 | "lint": "eslint src test",
|
24 |
| - "test": "npm run lint && npm run test:types && npm run test:unit && npm run test:ssr && npm run test:e2e", |
| 31 | + "test": "npm run lint && npm run test:types && npm run test:unit && npm run test:ssr && npm run test:e2e && npm run test:esm", |
25 | 32 | "test:unit": "jest --testPathIgnorePatterns test/e2e",
|
26 | 33 | "test:e2e": "start-server-and-test dev http://localhost:8080 'jest --testPathIgnorePatterns test/unit'",
|
27 | 34 | "test:ssr": "cross-env VUE_ENV=server jest --testPathIgnorePatterns test/e2e",
|
28 | 35 | "test:types": "tsc -p types/test",
|
| 36 | + "test:esm": "node test/esm/esm-test.js", |
29 | 37 | "coverage": "jest --testPathIgnorePatterns test/e2e --coverage",
|
30 | 38 | "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
31 | 39 | "release": "node scripts/release.js",
|
|
0 commit comments