Skip to content

Commit 637500e

Browse files
lerouxbaddaleax
andauthored
Update packages/shell-api/bin/api-postprocess.ts
Co-authored-by: Anna Henningsen <[email protected]>
1 parent 5443bf6 commit 637500e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/shell-api/bin/api-postprocess.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async function main() {
136136
);
137137

138138
const exportCode = `"use strict";
139-
module.exports = ${JSON.stringify(code)};
139+
module.exports = { api: ${JSON.stringify(code)} };
140140
`;
141141
await fs.writeFile(
142142
path.resolve(__dirname, '..', 'lib', 'api-export.js'),
@@ -145,7 +145,7 @@ module.exports = ${JSON.stringify(code)};
145145

146146
await fs.writeFile(
147147
path.resolve(__dirname, '..', 'lib', 'api-export.d.ts'),
148-
'declare const _default: string; export default _default;'
148+
'export declare const api;'
149149
);
150150
}
151151

0 commit comments

Comments
 (0)