@taqueria/plugin-ligo 0.0.0-pr-149-70de2cae → 0.0.0-pr-157-bae5ad3b

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.
Files changed (2) hide show
  1. package/compile.js +1 -21
  2. package/package.json +1 -1
package/compile.js CHANGED
@@ -1,4 +1,4 @@
1
- import {execCmd, getArch} from '@taqueria/node-sdk'
1
+ const {execCmd, getArch} = require('@taqueria/node-sdk')
2
2
  const {extname, basename, join} = require('path')
3
3
  const glob = require('fast-glob')
4
4
 
@@ -23,26 +23,6 @@ const getCompileCommand = (opts, arch) => (sourceFile) => {
23
23
  return cmd
24
24
  }
25
25
 
26
- const execCmd = cmd => new Promise((resolve, reject) => {
27
- exec(cmd, (err, stdout, stderr) => {
28
- if (err) reject({
29
- status: 'failed',
30
- stdout: "",
31
- stderr: err
32
- })
33
- else if (stderr) reject({
34
- status: 'failed',
35
- stdout,
36
- stderr
37
- })
38
- else resolve({
39
- status: 'success',
40
- stdout,
41
- stderr
42
- })
43
- })
44
- })
45
-
46
26
  const compileContract = (opts) => (sourceFile) =>
47
27
  getArch()
48
28
  .then(arch => getCompileCommand(opts, arch) (sourceFile))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taqueria/plugin-ligo",
3
- "version": "0.0.0-pr-149-70de2cae",
3
+ "version": "0.0.0-pr-157-bae5ad3b",
4
4
  "description": "A taqueria plugin for compiling LIGO smart contracts",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",