mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-02 08:56:11 +00:00
fix(@embark/pipeline): revise require in embarkArtifacts/contracts/index
This commit is contained in:
parent
3a9fa56349
commit
ff97aa5b3e
@ -372,7 +372,7 @@ class Pipeline {
|
||||
// e.g. import * as Contracts from 'Embark/contracts'
|
||||
let importHelperFileCode = 'module.exports = {\n';
|
||||
Object.values(contracts).forEach(contract => {
|
||||
importHelperFileCode += `"${contract.className}": require('./${contract.className}').default,\n`;
|
||||
importHelperFileCode += `"${contract.className}": require('./${contract.className}'),\n`;
|
||||
});
|
||||
importHelperFileCode += '};';
|
||||
self.fs.writeFile(joinPath(contractsDir, 'index.js'), importHelperFileCode, (err) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user