Skip to content

Commit fde3abe

Browse files
authored
dev: add imports to manage-db script (#3772)
1 parent b1fa3eb commit fde3abe

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scripts/db_tools/manage-db.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141
"
4242
*/
4343

44+
import * as fs from 'fs/promises';
4445
import { Db, MongoClient } from 'mongodb';
46+
import * as os from 'os';
47+
import * as path from 'path';
4548
import * as RichText from 'rich-text';
4649
import ShareDB from 'sharedb';
4750
import { Connection } from 'sharedb/lib/client';
@@ -50,6 +53,11 @@ import yargs from 'yargs';
5053
import { hideBin } from 'yargs/helpers';
5154
import utilsLib from './utils';
5255

56+
// Keep 'unused' imports available for use in eval code.
57+
const _a = fs;
58+
const _b = os;
59+
const _c = path;
60+
5361
type ProgArgs = {
5462
server: string;
5563
eval: string;

0 commit comments

Comments
 (0)