change 'fs' to 'node:fs'

This commit is contained in:
acalcutt 2022-09-16 19:48:21 -04:00
parent 9c1009e1d2
commit 796b033762
7 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@
'use strict'; 'use strict';
import fs from 'fs'; import fs from 'node:fs';
import path from 'path'; import path from 'path';
import {fileURLToPath} from 'url'; import {fileURLToPath} from 'url';
import request from 'request'; import request from 'request';

View file

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import fs from 'fs'; import fs from 'node:fs';
import path from 'path'; import path from 'path';
import zlib from 'zlib'; import zlib from 'zlib';

View file

@ -1,7 +1,7 @@
'use strict'; 'use strict';
import express from 'express'; import express from 'express';
import fs from 'fs'; import fs from 'node:fs';
import path from 'path'; import path from 'path';
import {getFontsPbf} from './utils.js'; import {getFontsPbf} from './utils.js';

View file

@ -1,7 +1,7 @@
'use strict'; 'use strict';
import advancedPool from 'advanced-pool'; import advancedPool from 'advanced-pool';
import fs from 'fs'; import fs from 'node:fs';
import path from 'path'; import path from 'path';
import url from 'url'; import url from 'url';
import util from 'util'; import util from 'util';

View file

@ -1,7 +1,7 @@
'use strict'; 'use strict';
import path from 'path'; import path from 'path';
import fs from 'fs'; import fs from 'node:fs';
import clone from 'clone'; import clone from 'clone';
import express from 'express'; import express from 'express';

View file

@ -5,7 +5,7 @@ import os from 'os';
process.env.UV_THREADPOOL_SIZE = process.env.UV_THREADPOOL_SIZE =
Math.ceil(Math.max(4, os.cpus().length * 1.5)); Math.ceil(Math.max(4, os.cpus().length * 1.5));
import fs from 'fs'; import fs from 'node:fs';
import path from 'path'; import path from 'path';
import chokidar from 'chokidar'; import chokidar from 'chokidar';

View file

@ -1,7 +1,7 @@
'use strict'; 'use strict';
import path from 'path'; import path from 'path';
import fs from 'fs'; import fs from 'node:fs';
import clone from 'clone'; import clone from 'clone';
import glyphCompose from '@mapbox/glyph-pbf-composite'; import glyphCompose from '@mapbox/glyph-pbf-composite';