chai 5.3.0 → 5.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  * MIT Licensed
5
5
  */
6
6
 
7
- import * as chai from '../../../index.js';
7
+ import * as chai from '../../chai.js';
8
8
  import {Assertion} from '../assertion.js';
9
9
  import {flag, inspect} from '../utils/index.js';
10
10
  import {AssertionError} from 'assertion-error';
@@ -4,7 +4,7 @@
4
4
  * MIT Licensed
5
5
  */
6
6
 
7
- import * as chai from '../../../index.js';
7
+ import * as chai from '../../chai.js';
8
8
  import {Assertion} from '../assertion.js';
9
9
  import {AssertionError} from 'assertion-error';
10
10
 
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "Veselin Todorov <hi@vesln.com>",
25
25
  "John Firebaugh <john.firebaugh@gmail.com>"
26
26
  ],
27
- "version": "5.3.0",
27
+ "version": "5.3.2",
28
28
  "repository": {
29
29
  "type": "git",
30
30
  "url": "https://github.com/chaijs/chai"
@@ -32,13 +32,12 @@
32
32
  "bugs": {
33
33
  "url": "https://github.com/chaijs/chai/issues"
34
34
  },
35
- "main": "./lib/chai.js",
35
+ "main": "./index.js",
36
36
  "scripts": {
37
+ "build": "esbuild --bundle --format=esm --outfile=index.js lib/chai.js",
37
38
  "prebuild": "npm run clean",
38
- "build": "npm run build:esm",
39
- "build:esm": "esbuild --bundle --format=esm --keep-names --outfile=chai.js index.js",
40
39
  "format": "prettier --write lib",
41
- "pretest": "npm run lint && npm run build",
40
+ "pretest": "npm run lint",
42
41
  "test": "npm run test-node && npm run test-chrome",
43
42
  "test-node": "c8 --99 --check-coverage mocha --require ./test/bootstrap/index.js test/*.js",
44
43
  "test-chrome": "web-test-runner --playwright",
@@ -46,7 +45,7 @@
46
45
  "lint:js": "eslint lib/",
47
46
  "lint:format": "prettier --check lib",
48
47
  "lint:types": "tsc",
49
- "clean": "rm -rf chai.js coverage/"
48
+ "clean": "rm -rf index.js coverage/"
50
49
  },
51
50
  "engines": {
52
51
  "node": ">=18"
@@ -65,7 +64,7 @@
65
64
  "@web/test-runner": "^0.18.0",
66
65
  "@web/test-runner-playwright": "^0.11.0",
67
66
  "c8": "^10.1.3",
68
- "esbuild": "^0.25.0",
67
+ "esbuild": "^0.25.9",
69
68
  "eslint": "^8.56.0",
70
69
  "eslint-plugin-jsdoc": "^48.0.4",
71
70
  "mocha": "^10.2.0",