@taqueria/plugin-ligo 0.0.5 → 0.0.6
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.
- package/compile.js +2 -2
- package/package.json +1 -1
package/compile.js
CHANGED
|
@@ -11,10 +11,10 @@ const getInputFilename = (opts) => sourceFile => {
|
|
|
11
11
|
return join(opts.config.contractsDir, sourceFile)
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
const getCompileCommand = (opts,
|
|
14
|
+
const getCompileCommand = (opts, _arch) => (sourceFile) => {
|
|
15
15
|
const {projectDir} = opts
|
|
16
16
|
const inputFile = getInputFilename (opts) (sourceFile)
|
|
17
|
-
const baseCommand = `docker run --
|
|
17
|
+
const baseCommand = `docker run --rm -v \"${projectDir}\":/project -w /project ligolang/ligo:next compile contract ${inputFile}`
|
|
18
18
|
const entryPoint = opts.e ? `-e ${opts.e}` : ""
|
|
19
19
|
const syntax = opts["-s"] ? `s ${opts['s']} : ""` : ""
|
|
20
20
|
const outFile = `-o ${getContractArtifactFilename(opts)(sourceFile)}`
|