@dainprotocol/cli 1.1.15 → 1.1.18

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.
@@ -101,7 +101,7 @@ function cleanup() {
101
101
  }
102
102
  function dev(options) {
103
103
  return __awaiter(this, void 0, void 0, function () {
104
- var config, runtime, command, envVars, proxyServer, watchPaths, dainDir, outFile, MFconfig_1, debounceTimer_1, watchDirs, error_1;
104
+ var config, runtime, tsNodePath, command, envVars, proxyServer, watchPaths, dainDir, outFile, MFconfig_1, debounceTimer_1, watchDirs, error_1;
105
105
  return __generator(this, function (_a) {
106
106
  switch (_a.label) {
107
107
  case 0:
@@ -109,7 +109,8 @@ function dev(options) {
109
109
  console.log('Config: ' + JSON.stringify(config));
110
110
  runtime = options.runtime || config.runtime || 'node';
111
111
  console.log('Runtime: ' + runtime);
112
- command = "./node_modules/.bin/ts-node ".concat(config['main-file']);
112
+ tsNodePath = path_1.default.join(process.cwd(), 'node_modules', '.bin', 'ts-node');
113
+ command = "\"".concat(tsNodePath, "\" \"").concat(config['main-file'], "\"");
113
114
  envVars = {
114
115
  PORT: options.port,
115
116
  DAIN_API_KEY: config['api-key'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dainprotocol/cli",
3
- "version": "1.1.15",
3
+ "version": "1.1.18",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"