Skip to content

Commit

Permalink
chore: drop commonjs support (#1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Feb 15, 2023
1 parent 3076fb3 commit ad82f62
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 36 deletions.
14 changes: 0 additions & 14 deletions index.mjs

This file was deleted.

13 changes: 2 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,13 @@
"url": "https://github.com/chaijs/chai/issues"
},
"main": "./chai.js",
"exports": {
".": {
"require": "./chai.cjs",
"import": "./chai.js"
},
"./*": "./*"
},
"scripts": {
"prebuild": "npm run clean",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "esbuild --bundle --format=cjs --keep-names --outfile=chai.cjs index.js",
"build": "npm run build:esm",
"build:esm": "esbuild --bundle --format=esm --keep-names --outfile=chai.js index.js",
"pretest": "npm run build",
"test": "npm run test-node && npm run test-cjs && npm run test-chrome",
"test": "npm run test-node && npm run test-chrome",
"test-node": "mocha --require ./test/bootstrap/index.js --reporter dot test/*.js",
"test-cjs": "mocha --require ./test/bootstrap/index.js --reporter dot test/*.cjs",
"test-chrome": "karma start karma.conf.cjs --single-run --browsers HeadlessChrome",
"test-firefox": "karma start karma.conf.cjs --browsers Firefox",
"test-cov": "istanbul cover ./node_modules/.bin/_mocha -- --require ./test/bootstrap/index.js test/*.js",
Expand Down
11 changes: 0 additions & 11 deletions test/commonjs.cjs

This file was deleted.

0 comments on commit ad82f62

Please sign in to comment.