Skip to content

Commit 5587fea

Browse files
committed
Fixed bundle issues
1 parent f1468a1 commit 5587fea

File tree

8 files changed

+122
-31
lines changed

8 files changed

+122
-31
lines changed

CHANGELOG.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,57 @@
11
# Release Notes
22

3-
## [2.0.0 (2024-09-25)]
3+
## [2.0.1 (2024-09-28)](https://github.com/axe-api/axe-api/compare/2.0.1...2.0.0)
4+
5+
- Fixed bundling issues
6+
7+
## [2.0.0 (2024-09-25)](https://github.com/axe-api/axe-api/compare/2.0.0...1.0.5)
48

59
### Breaking change
610

711
- It requires to import changes.
812

9-
## [1.0.5 (2024-09-25)]
13+
## [1.0.5 (2024-09-25)](https://github.com/axe-api/axe-api/compare/1.0.5...1.0.4)
1014

1115
### Fixes
1216

1317
- Dependency updates.
1418

15-
## [1.0.4 (2024-08-25)]
19+
## [1.0.4 (2024-08-25)](https://github.com/axe-api/axe-api/compare/1.0.4...1.0.3)
1620

1721
### Fixes
1822

1923
- Dependency updates.
2024

21-
## [1.0.3 (2024-04-22)]
25+
## [1.0.3 (2024-04-22)](https://github.com/axe-api/axe-api/compare/1.0.3...1.0.2)
2226

2327
### Fixes
2428

2529
- Dependency updates.
2630
- Fixed bundling issues
2731

28-
## [1.0.2 (2024-02-11)]
32+
## [1.0.2 (2024-02-11)](https://github.com/axe-api/axe-api/compare/1.0.2...1.0.1)
2933

3034
### Fixes
3135

3236
- Dependency updates.
3337

34-
## [1.0.1 (2023-12-19)]
38+
## [1.0.1 (2023-12-19)](https://github.com/axe-api/axe-api/compare/1.0.1...1.0.0)
3539

3640
### Fixes
3741

3842
- Dependency updates.
3943

40-
## [1.0.0 (2023-12-05)]
44+
## [1.0.0 (2023-12-05)](https://github.com/axe-api/axe-api/compare/1.0.0...0.1.1)
4145

4246
- The current release has been marked as stable.
4347

44-
## [0.1.1 (2023-12-03)]
48+
## [0.1.1 (2023-12-03)](https://github.com/axe-api/axe-api/compare/0.1....0.1.40)
4549

4650
### Fixes
4751

4852
- Bump @babel/traverse from 7.21.4 to 7.23.5 [#2](https://github.com/axe-api/client/security/dependabot/2)
4953

50-
## [0.1.0 (2023-07-23)]
54+
## 0.1.0 (2023-07-23)
5155

5256
### Features
5357

package-lock.json

Lines changed: 60 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33
"version": "2.0.0",
44
"description": "axe-api-client is a native JavaScript client for Axe API servers.",
55
"type": "module",
6-
"source": "./index.ts",
6+
"main": "dist/index.cjs",
7+
"module": "dist/index.mjs",
8+
"types": "dist/index.d.ts",
79
"exports": {
8-
"require": "./dist/index.cjs",
9-
"default": "./dist/index.modern.js"
10+
".": {
11+
"import": "./dist/index.mjs",
12+
"require": "./dist/index.cjs",
13+
"types": "./dist/index.d.ts"
14+
}
1015
},
11-
"main": "./dist/index.cjs",
12-
"module": "./dist/index.module.js",
13-
"unpkg": "./dist/index.umd.js",
14-
"types": "./dist/index.d.ts",
1516
"files": [
1617
"/dist"
1718
],
1819
"scripts": {
1920
"dev": "ts-node-dev --files --respawn --clear index.ts",
2021
"dev-kit": "ts-node-dev --respawn --clear dev-kit.ts",
21-
"build": "rm -rf ./dist && microbundle",
22+
"build": "rm -rf ./dist && rollup -c",
2223
"test": "jest --runInBand",
2324
"test:dev": "jest --watch",
2425
"test:consumer": "sh scripts/consumer-test.sh",
@@ -36,9 +37,11 @@
3637
"fetch-mock": "^9.11.0",
3738
"husky": "^9.1.6",
3839
"jest": "^29.7.0",
40+
"lint-staged": "^15.2.10",
3941
"microbundle": "^0.15.1",
4042
"prettier": "3.3.3",
41-
"lint-staged": "^15.2.10"
43+
"rollup": "^2.79.2",
44+
"@rollup/plugin-typescript": "^12.1.0"
4245
},
4346
"lint-staged": {
4447
"**/*": "prettier --write --ignore-unknown"

rollup.config.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import typescript from "@rollup/plugin-typescript";
2+
3+
export default {
4+
input: "src/index.ts",
5+
output: [
6+
{
7+
file: "dist/index.cjs",
8+
format: "cjs",
9+
},
10+
{
11+
file: "dist/index.mjs",
12+
format: "esm",
13+
},
14+
],
15+
plugins: [typescript()],
16+
};

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export * from "./Config";
2+
export * from "./Constants";
3+
export * from "./Interfaces";
4+
export * from "./Resource";
5+
export * from "./Types";
6+
export * from "./Api";

tests/consumers/cjs/package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/consumers/esm/package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/consumers/ts-local/package-lock.json

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)