Skip to content

Commit 02ff167

Browse files
committed
fix(openapi-typescript): build cjs support astToString export
1 parent 310971d commit 02ff167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/openapi-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"build": "run-s -s build:*",
4444
"build:clean": "del dist",
4545
"build:esm": "tsc -p tsconfig.build.json",
46-
"build:cjs": "esbuild --bundle --platform=node --target=es2019 --outfile=dist/index.cjs --external:@redocly/ajv --external:@redocly/openapi-core --external:typescript src/index.ts --footer:js=\"module.exports = module.exports.default;\"",
46+
"build:cjs": "esbuild --bundle --platform=node --target=es2019 --outfile=dist/index.cjs --external:@redocly/ajv --external:@redocly/openapi-core --external:typescript src/index.ts",
4747
"dev": "tsc -p tsconfig.build.json --watch",
4848
"download:schemas": "vite-node ./scripts/download-schemas.ts",
4949
"format": "prettier --write \"src/**/*\"",

0 commit comments

Comments
 (0)