Skip to content

Commit 61851a9

Browse files
committed
Fix ono commonjs hack in script
Details in JS-DevTools/ono#19, It's fixed in JS-DevTools/ono#20 This package is not maintained but it's depended on by swagger-parser
1 parent e2bb587 commit 61851a9

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

core/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @api2ai/core
22

3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- Fix ono commonjs hack problem in script
8+
9+
## 0.2.1
10+
11+
### Patch Changes
12+
13+
- Patch ono commonjs problem
14+
315
## 0.2.0
416

517
### Minor Changes

core/fix-ono.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sed -i '' -e 's,typeof module === "object" && typeof module.exports === "object",typeof module === "object" \&\& typeof module.exports === "object" \&\& typeof module.exports.default === "object",g' dist/*

core/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@api2ai/core",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
66
"license": "MIT",
77
"scripts": {
88
"lint": "eslint \"**/*.ts*\"",
99
"test": "jest",
10-
"build": "tsup ./index.ts --format esm --dts --clean"
10+
"build": "tsup ./index.ts --format cjs,esm --dts --clean && ./fix-ono.sh"
1111
},
1212
"devDependencies": {
1313
"@changesets/cli": "^2.26.2",

0 commit comments

Comments
 (0)