-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathtest.js
1 lines (1 loc) · 1020 Bytes
/
test.js
1
import _0x3f93cf from'fs';import _0x98fc7c,{dirname}from'path';import _0x53a85e from'assert';import{spawn}from'child_process';import _0xf4654c from'syntax-error';import{fileURLToPath}from'url';import{createRequire}from'module';const __filename=fileURLToPath(import.meta['url']),__dirname=dirname(__filename),require=createRequire(__dirname),folders=['.',...Object['keys'](require(_0x98fc7c['join'](__dirname,'./package.json'))['directories'])],files=[];for(const folder of folders){for(const file of _0x3f93cf['readdirSync'](folder)['filter'](_0x134a11=>_0x134a11['endsWith']('.js'))){files['push'](_0x98fc7c['resolve'](_0x98fc7c['join'](folder,file)));}}for(const file of files){if(file==__filename)continue;console['error']('Checking',file);const error=_0xf4654c(_0x3f93cf['readFileSync'](file,'utf8'),file,{'sourceType':'module','allowReturnOutsideFunction':!![],'allowAwaitOutsideFunction':!![]});if(error)_0x53a85e['ok'](error['length']<0x1,file+'\x0a\x0a'+error);_0x53a85e['ok'](file),console['log']('Done',file);}