|
1 | 1 | { |
2 | 2 | "name": "react-spinners", |
3 | | - "version": "0.17.0-beta.3", |
| 3 | + "version": "0.17.0-beta.4", |
4 | 4 | "description": "A collection of react loading spinners", |
5 | 5 | "repository": { |
6 | 6 | "type": "git", |
|
29 | 29 | "progress", |
30 | 30 | "activity" |
31 | 31 | ], |
32 | | - "main": "index.js", |
| 32 | + "main": "cjs/index.js", |
33 | 33 | "module": "esm/index.js", |
| 34 | + "exports": { |
| 35 | + "import": "./esm/index.js", |
| 36 | + "require": "./cjs/index.js" |
| 37 | + }, |
34 | 38 | "scripts": { |
35 | | - "prepare": "$npm_execpath run build:cjs & $npm_execpath run build:esm && $npm_execpath run build", |
36 | | - "build": "tsc --project tsconfig.cjs.json", |
| 39 | + "prepare": "$npm_execpath run clean && $npm_execpath run build:cjs & $npm_execpath run build:esm", |
37 | 40 | "build:cjs": "tsc --project tsconfig.cjs.json --outDir cjs", |
38 | 41 | "build:esm": "tsc --project tsconfig.esm.json --outDir esm", |
39 | 42 | "build:demo": "$npm_execpath run vite build", |
40 | 43 | "dev:demo": "vite dev", |
41 | 44 | "patch": "npm version patch && npm publish && npm run clean", |
42 | 45 | "minor": "npm version minor && npm publish && npm run clean", |
43 | 46 | "major": "npm version major && npm publish && npm run clean", |
44 | | - "clean": "rm -rf helpers/; rm -f *Loader.js; rm -f *Loader.d.ts; rm -f index.js; rm -f index.d.ts; rm -rf docs/js; rm -rf cjs; rm -rf esm", |
| 47 | + "clean": "rm -rf cjs; rm -rf esm", |
45 | 48 | "lint": "eslint", |
46 | 49 | "test": "jest", |
47 | 50 | "coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls", |
|
0 commit comments