Skip to content

Commit

Permalink
chore: drop commonjs support
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Feb 14, 2023
1 parent 3076fb3 commit afa63f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
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 afa63f3

Please sign in to comment.