Skip to content

Commit

Permalink
Fix ono commonjs hack in script
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mquan committed Jul 21, 2023
1 parent e2bb587 commit 61851a9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @api2ai/core

## 0.3.0

### Minor Changes

- Fix ono commonjs hack problem in script

## 0.2.1

### Patch Changes

- Patch ono commonjs problem

## 0.2.0

### Minor Changes
Expand Down
1 change: 1 addition & 0 deletions core/fix-ono.sh
Original file line number Diff line number Diff line change
@@ -0,0 +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/*
4 changes: 2 additions & 2 deletions core/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@api2ai/core",
"version": "0.2.0",
"version": "0.3.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"license": "MIT",
"scripts": {
"lint": "eslint \"**/*.ts*\"",
"test": "jest",
"build": "tsup ./index.ts --format esm --dts --clean"
"build": "tsup ./index.ts --format cjs,esm --dts --clean && ./fix-ono.sh"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
Expand Down

0 comments on commit 61851a9

Please sign in to comment.