Skip to content

Commit df9f2bb

Browse files
committed
Use node: prefix for built-in node modules
1 parent 4d6d46b commit df9f2bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

codegen-util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/********************
22
* User Input Inquirer
33
********************/
4-
const readline = require('readline');
4+
const readline = require('node:readline');
55
/**
66
* @param {string} query
77
* @returns {Promise<string>}

codegen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const fs = require('fs');
2-
const path = require('path');
1+
const fs = require('node:fs');
2+
const path = require('node:path');
33
const { getArgs, askQuestion } = require('./codegen-util');
44

55
const INDEX_TXT = `export { default } from './apiHandler';

0 commit comments

Comments
 (0)