Mock __dirname (#4402)

This commit is contained in:
Jaco
2021-12-31 11:43:19 +02:00
committed by GitHub
parent 9c76bb2618
commit ecdbfd22d5
61 changed files with 248 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@
import { detectPackage } from '@polkadot/util';
import __dirname from './cjs/dirname';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, []);