refactor: prefix node:* to path

This commit is contained in:
Erisu 2024-11-05 23:43:03 +09:00 committed by エリス
parent 6e0250b172
commit 214a4c70ba
No known key found for this signature in database
GPG Key ID: 2E5FF17FB26AF7F2
26 changed files with 26 additions and 26 deletions

View File

@ -18,7 +18,7 @@
*/
const fs = require('fs');
const path = require('path');
const path = require('node:path');
const properties_parser = require('properties-parser');
const pluginHandlers = require('./pluginHandlers');
const CordovaGradleConfigParserFactory = require('./config/CordovaGradleConfigParserFactory');

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;

View File

@ -17,7 +17,7 @@
under the License.
*/
const path = require('path');
const path = require('node:path');
const fs = require('fs');
const nopt = require('nopt');
const untildify = require('untildify');

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;

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');

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 {

View File

@ -18,7 +18,7 @@
*/
const fs = require('fs');
const path = require('path');
const path = require('node:path');
const propertiesParser = require('properties-parser');
const events = require('cordova-common').events;

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');

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;

2
lib/env/java.js vendored
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');

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;

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');

View File

@ -19,7 +19,7 @@
const os = require('os');
const fs = require('fs-extra');
const path = require('path');
const path = require('node:path');
const { EventEmitter } = require('events');
const { ConfigParser, PluginInfoProvider } = require('cordova-common');
const Api = require('../../lib/Api');

View File

@ -19,7 +19,7 @@
const fs = require('fs');
const os = require('os');
const path = require('path');
const path = require('node:path');
const rewire = require('rewire');
describe('AndroidManifest', () => {

View File

@ -17,7 +17,7 @@
under the License.
*/
const path = require('path');
const path = require('node:path');
const rewire = require('rewire');
const MockCordovaGradleConfigParser = require('./mocks/config/MockCordovaGradleConfigParser');
const CordovaGradleConfigParserFactory = require('../../lib/config/CordovaGradleConfigParserFactory');

View File

@ -18,7 +18,7 @@
*/
const os = require('os');
const path = require('path');
const path = require('node:path');
const common = require('cordova-common');
const EventEmitter = require('events');

View File

@ -18,7 +18,7 @@
*/
const fs = require('fs');
const path = require('path');
const path = require('node:path');
const rewire = require('rewire');
describe('android_sdk', () => {

View File

@ -18,7 +18,7 @@
*/
const fs = require('fs-extra');
const path = require('path');
const path = require('node:path');
const rewire = require('rewire');
const { isWindows } = require('../../../lib/utils');

View File

@ -20,7 +20,7 @@
const rewire = require('rewire');
const android_sdk = require('../../lib/android_sdk');
const fs = require('fs-extra');
const path = require('path');
const path = require('node:path');
const events = require('cordova-common').events;
const which = require('which');

View File

@ -22,7 +22,7 @@ const utils = require('../../lib/utils');
const create = rewire('../../lib/create');
const check_reqs = require('../../lib/check_reqs');
const fs = require('fs-extra');
const path = require('path');
const path = require('node:path');
const MockCordovaGradleConfigParser = require('./mocks/config/MockCordovaGradleConfigParser');
const CordovaGradleConfigParserFactory = require('../../lib/config/CordovaGradleConfigParserFactory');

View File

@ -18,7 +18,7 @@
*/
const fs = require('fs-extra');
const path = require('path');
const path = require('node:path');
const rewire = require('rewire');
const which = require('which');

View File

@ -17,7 +17,7 @@
under the License.
*/
const path = require('path');
const path = require('node:path');
const rewire = require('rewire');
const { CordovaError } = require('cordova-common');
const utils = require('../../lib/utils');

View File

@ -18,7 +18,7 @@
const rewire = require('rewire');
const common = rewire('../../../lib/pluginHandlers');
const path = require('path');
const path = require('node:path');
const fs = require('fs-extra');
const osenv = require('os');

View File

@ -20,7 +20,7 @@
const rewire = require('rewire');
const common = rewire('../../../lib/pluginHandlers');
const android = common.__get__('handlers');
const path = require('path');
const path = require('node:path');
const fs = require('fs-extra');
const os = require('os');
const temp = path.join(os.tmpdir(), 'plugman');

View File

@ -18,7 +18,7 @@
*/
const rewire = require('rewire');
const path = require('path');
const path = require('node:path');
const CordovaError = require('cordova-common').CordovaError;
const GradlePropertiesParser = require('../../lib/config/GradlePropertiesParser');
const utils = require('../../lib/utils');

View File

@ -19,7 +19,7 @@
under the License.
*/
const path = require('path');
const path = require('node:path');
const execa = require('execa');
const fs = require('fs-extra');
const ProjectBuilder = require('../lib/builders/ProjectBuilder');