@alephium/web3 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -322,7 +322,7 @@ class Project {
|
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
static getImportSourcePath(projectRootDir, importPath) {
|
|
325
|
-
const parts = importPath.split(
|
|
325
|
+
const parts = importPath.split('/');
|
|
326
326
|
if (parts.length > 1 && parts[0] === 'std') {
|
|
327
327
|
const currentDir = path.dirname(__filename);
|
|
328
328
|
return path.join(...[currentDir, '..', '..', '..', importPath]);
|
package/package.json
CHANGED
package/src/contract/contract.ts
CHANGED
|
@@ -486,7 +486,7 @@ export class Project {
|
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
private static getImportSourcePath(projectRootDir: string, importPath: string): string {
|
|
489
|
-
const parts = importPath.split(
|
|
489
|
+
const parts = importPath.split('/')
|
|
490
490
|
if (parts.length > 1 && parts[0] === 'std') {
|
|
491
491
|
const currentDir = path.dirname(__filename)
|
|
492
492
|
return path.join(...[currentDir, '..', '..', '..', importPath])
|