require the use of node prefix on native imports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
const fs = require('fs-extra');
|
||||
const path = require('path');
|
||||
const path = require('node:path');
|
||||
|
||||
const YARN_REGISTRY = 'https://registry.yarnpkg.com';
|
||||
const NPM_REGISTRY = 'https://registry.npmjs.org';
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
/* eslint-disable no-restricted-syntax */
|
||||
|
||||
const fs = require('fs-extra');
|
||||
const path = require('path');
|
||||
const path = require('node:path');
|
||||
|
||||
async function main() {
|
||||
const pkgPath = path.resolve(__dirname, '../package.json');
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
/* eslint-disable no-restricted-syntax */
|
||||
|
||||
const fs = require('fs-extra');
|
||||
const path = require('path');
|
||||
const path = require('node:path');
|
||||
|
||||
async function main() {
|
||||
const pkgPath = path.resolve(__dirname, '../package.json');
|
||||
|
||||
Reference in New Issue
Block a user