Skip to content

Commit 9f55180

Browse files
authored
refactor: prefix node:* (#1769)
* refactor: prefix node:* to path * refactor: prefix node:* to os * refactor: prefix node:* to fs * refactor: prefix node:* to util
1 parent 92116de commit 9f55180

30 files changed

+40
-40
lines changed

lib/Adb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
under the License.
1818
*/
1919

20-
const os = require('os');
20+
const os = require('node:os');
2121
const execa = require('execa');
2222
const events = require('cordova-common').events;
2323
const CordovaError = require('cordova-common').CordovaError;

lib/AndroidManifest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
under the License.
1818
*/
1919

20-
const fs = require('fs');
20+
const fs = require('node:fs');
2121
const xml = require('cordova-common').xmlHelpers;
2222

2323
const DEFAULT_ORIENTATION = 'default';

lib/AndroidProject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
under the License.
1818
*/
1919

20-
const fs = require('fs');
21-
const path = require('path');
20+
const fs = require('node:fs');
21+
const path = require('node:path');
2222
const properties_parser = require('properties-parser');
2323
const pluginHandlers = require('./pluginHandlers');
2424
const CordovaGradleConfigParserFactory = require('./config/CordovaGradleConfigParserFactory');

lib/Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
under the License.
1818
*/
1919

20-
const path = require('path');
20+
const path = require('node:path');
2121

2222
const AndroidProject = require('./AndroidProject');
2323
const PluginManager = require('cordova-common').PluginManager;

lib/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
under the License.
1818
*/
1919

20-
const path = require('path');
21-
const fs = require('fs');
20+
const path = require('node:path');
21+
const fs = require('node:fs');
2222
const nopt = require('nopt');
2323
const untildify = require('untildify');
2424
const { parseArgsStringToArgv } = require('string-argv');

lib/builders/ProjectBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
const fs = require('fs-extra');
21-
const path = require('path');
21+
const path = require('node:path');
2222
const execa = require('execa');
2323
const glob = require('fast-glob');
2424
const events = require('cordova-common').events;

lib/check_reqs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
const execa = require('execa');
21-
const path = require('path');
21+
const path = require('node:path');
2222
const fs = require('fs-extra');
2323
const { forgivingWhichSync, isWindows, isDarwin } = require('./utils');
2424
const java = require('./env/java');

lib/config/CordovaGradleConfigParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
const fs = require('fs-extra');
21-
const path = require('path');
21+
const path = require('node:path');
2222
const events = require('cordova-common').events;
2323

2424
class CordovaGradleConfigParser {

lib/config/GradlePropertiesParser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
under the License.
1818
*/
1919

20-
const fs = require('fs');
21-
const path = require('path');
20+
const fs = require('node:fs');
21+
const path = require('node:path');
2222
const propertiesParser = require('properties-parser');
2323
const events = require('cordova-common').events;
2424

lib/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
under the License.
1818
*/
1919

20-
const path = require('path');
20+
const path = require('node:path');
2121
const fs = require('fs-extra');
2222
const utils = require('./utils');
2323
const check_reqs = require('./check_reqs');

0 commit comments

Comments
 (0)