Skip to content

Commit 22ac9bd

Browse files
committed
add some logging as documentation
1 parent 37fa446 commit 22ac9bd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ function applyAsyncRewriterChanges() {
107107
}
108108

109109
async function main() {
110+
// eslint-disable-next-line no-console
111+
console.log('Postprocessing lib/api-raw.d.ts as lib/api-processed.d.ts...');
110112
const apiRaw = await fs.readFile(
111113
path.resolve(__dirname, '..', 'lib', 'api-raw.d.ts'),
112114
'utf8'
@@ -135,6 +137,8 @@ async function main() {
135137
code
136138
);
137139

140+
// eslint-disable-next-line no-console
141+
console.log('Writing lib/api-export.js...');
138142
const exportCode = `"use strict";
139143
module.exports = { api: ${JSON.stringify(code)} };
140144
`;
@@ -143,6 +147,8 @@ module.exports = { api: ${JSON.stringify(code)} };
143147
exportCode
144148
);
145149

150+
// eslint-disable-next-line no-console
151+
console.log('Writing lib/api-export.d.ts...');
146152
await fs.writeFile(
147153
path.resolve(__dirname, '..', 'lib', 'api-export.d.ts'),
148154
'export declare const api;'

0 commit comments

Comments
 (0)