Skip to content

Commit ce5d33e

Browse files
authored
chore: revert cjs changes, remove cjs folder from build outputs (#648)
* revert-cjs-changes * fix
1 parent 1b7dad0 commit ce5d33e

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-spinners",
3-
"version": "0.17.0-beta.4",
3+
"version": "0.17.0-beta.5",
44
"description": "A collection of react loading spinners",
55
"repository": {
66
"type": "git",
@@ -29,22 +29,18 @@
2929
"progress",
3030
"activity"
3131
],
32-
"main": "cjs/index.js",
32+
"main": "index.js",
3333
"module": "esm/index.js",
34-
"exports": {
35-
"import": "./esm/index.js",
36-
"require": "./cjs/index.js"
37-
},
3834
"scripts": {
39-
"prepare": "$npm_execpath run clean && $npm_execpath run build:cjs & $npm_execpath run build:esm",
40-
"build:cjs": "tsc --project tsconfig.cjs.json --outDir cjs",
35+
"prepare": "$npm_execpath run clean && $npm_execpath run build && $npm_execpath run build:esm",
36+
"build": "tsc --project tsconfig.cjs.json",
4137
"build:esm": "tsc --project tsconfig.esm.json --outDir esm",
4238
"build:demo": "$npm_execpath run vite build",
4339
"dev:demo": "vite dev",
4440
"patch": "npm version patch && npm publish && npm run clean",
4541
"minor": "npm version minor && npm publish && npm run clean",
4642
"major": "npm version major && npm publish && npm run clean",
47-
"clean": "rm -rf cjs; rm -rf esm",
43+
"clean": "rm -rf helpers/; rm -f *Loader.js; rm -f *Loader.d.ts; rm -f index.js; rm -f index.d.ts; rm -rf esm",
4844
"lint": "eslint",
4945
"test": "jest",
5046
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"tests",
2929
"examples",
3030
"src/*.test.tsx",
31+
"src/helpers/*.test.*",
3132
"stories",
3233
"test-apps"
3334
]

0 commit comments

Comments
 (0)