mirror of https://github.com/embarklabs/embark.git
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…
Reference in New Issue