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