refactor: prefix node:* (#1769)

* refactor: prefix node:* to path
* refactor: prefix node:* to os
* refactor: prefix node:* to fs
* refactor: prefix node:* to util
This commit is contained in:
エリス
2025-01-28 12:13:36 +09:00
committed by GitHub
parent 92116dee48
commit 9f5518000f
30 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
under the License.
*/
const os = require('os');
const os = require('node:os');
const execa = require('execa');
const events = require('cordova-common').events;
const CordovaError = require('cordova-common').CordovaError;
+1 -1
View File
@@ -17,7 +17,7 @@
under the License.
*/
const fs = require('fs');
const fs = require('node:fs');
const xml = require('cordova-common').xmlHelpers;
const DEFAULT_ORIENTATION = 'default';
+2 -2
View File
@@ -17,8 +17,8 @@
under the License.
*/
const fs = require('fs');
const path = require('path');
const fs = require('node:fs');
const path = require('node:path');
const properties_parser = require('properties-parser');
const pluginHandlers = require('./pluginHandlers');
const CordovaGradleConfigParserFactory = require('./config/CordovaGradleConfigParserFactory');
+1 -1
View File
@@ -17,7 +17,7 @@
under the License.
*/
const path = require('path');
const path = require('node:path');
const AndroidProject = require('./AndroidProject');
const PluginManager = require('cordova-common').PluginManager;
+2 -2
View File
@@ -17,8 +17,8 @@
under the License.
*/
const path = require('path');
const fs = require('fs');
const path = require('node:path');
const fs = require('node:fs');
const nopt = require('nopt');
const untildify = require('untildify');
const { parseArgsStringToArgv } = require('string-argv');
+1 -1
View File
@@ -18,7 +18,7 @@
*/
const fs = require('fs-extra');
const path = require('path');
const path = require('node:path');
const execa = require('execa');
const glob = require('fast-glob');
const events = require('cordova-common').events;
+1 -1
View File
@@ -18,7 +18,7 @@
*/
const execa = require('execa');
const path = require('path');
const path = require('node:path');
const fs = require('fs-extra');
const { forgivingWhichSync, isWindows, isDarwin } = require('./utils');
const java = require('./env/java');
+1 -1
View File
@@ -18,7 +18,7 @@
*/
const fs = require('fs-extra');
const path = require('path');
const path = require('node:path');
const events = require('cordova-common').events;
class CordovaGradleConfigParser {
+2 -2
View File
@@ -17,8 +17,8 @@
under the License.
*/
const fs = require('fs');
const path = require('path');
const fs = require('node:fs');
const path = require('node:path');
const propertiesParser = require('properties-parser');
const events = require('cordova-common').events;
+1 -1
View File
@@ -17,7 +17,7 @@
under the License.
*/
const path = require('path');
const path = require('node:path');
const fs = require('fs-extra');
const utils = require('./utils');
const check_reqs = require('./check_reqs');
+1 -1
View File
@@ -20,7 +20,7 @@
const execa = require('execa');
const fs = require('fs-extra');
const android_versions = require('android-versions');
const path = require('path');
const path = require('node:path');
const Adb = require('./Adb');
const events = require('cordova-common').events;
const CordovaError = require('cordova-common').CordovaError;
+1 -1
View File
@@ -19,7 +19,7 @@
const execa = require('execa');
const fs = require('fs-extra');
const path = require('path');
const path = require('node:path');
const glob = require('fast-glob');
const { CordovaError, events } = require('cordova-common');
const utils = require('../utils');
+1 -1
View File
@@ -15,7 +15,7 @@
*/
const fs = require('fs-extra');
const path = require('path');
const path = require('node:path');
const isPathInside = require('is-path-inside');
const events = require('cordova-common').events;
const CordovaError = require('cordova-common').CordovaError;
+1 -1
View File
@@ -18,7 +18,7 @@
*/
const fs = require('fs-extra');
const path = require('path');
const path = require('node:path');
const nopt = require('nopt');
const glob = require('fast-glob');
const dedent = require('dedent');
+1 -1
View File
@@ -17,7 +17,7 @@
under the License.
*/
const { inspect } = require('util');
const { inspect } = require('node:util');
const execa = require('execa');
const Adb = require('./Adb');
const build = require('./build');
+1 -1
View File
@@ -25,7 +25,7 @@
const fs = require('fs-extra');
const which = require('which');
const os = require('os');
const os = require('node:os');
/**
* Reads, searches, and replaces the found occurences with replacementString and then writes the file back out.