@0xweb/hardhat 0.1.4 → 0.1.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.
Files changed (2) hide show
  1. package/lib/index.js +45 -1
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  var _src_config = {};
6
6
  var _src_constants = {};
7
+ var _src_utils__path = {};
7
8
 
8
9
  // source ./ModuleSimplified.js
9
10
  var _src_config;
@@ -77,6 +78,49 @@ exports.TASK_0xWEB_GENERATE = '0xweb:generate';
77
78
 
78
79
  // end:source ./ModuleSimplified.js
79
80
 
81
+
82
+ // source ./ModuleSimplified.js
83
+ var _src_utils__path;
84
+ (function () {
85
+ // ensure AMD is not active for the model, so that any UMD exports as commonjs
86
+ var define = null;
87
+ var exports = _src_utils__path != null ? _src_utils__path : {};
88
+ var module = { exports: exports };
89
+
90
+ "use strict";
91
+ Object.defineProperty(exports, "__esModule", { value: true });
92
+ exports.$path = void 0;
93
+ const pathUtil = require("path");
94
+ var $path;
95
+ (function ($path) {
96
+ function resolve(path) {
97
+ if (path.startsWith('file:')) {
98
+ path = path.replace(/^file:\/\//g, '');
99
+ return path;
100
+ }
101
+ return pathUtil.join(process.cwd(), path);
102
+ }
103
+ $path.resolve = resolve;
104
+ })($path = exports.$path || (exports.$path = {}));
105
+ //# sourceMappingURL=$path.js.map
106
+ //# sourceMappingURL=$path.ts.map;
107
+
108
+ function __isObj(x) {
109
+ return x != null && typeof x === 'object' && x.constructor === Object;
110
+ }
111
+ if (_src_utils__path === module.exports) {
112
+ // do nothing if
113
+ } else if (__isObj(_src_utils__path) && __isObj(module.exports)) {
114
+ Object.assign(_src_utils__path, module.exports);
115
+ } else {
116
+ _src_utils__path = module.exports;
117
+ }
118
+
119
+ ;
120
+ }());
121
+
122
+ // end:source ./ModuleSimplified.js
123
+
80
124
  "use strict";
81
125
  Object.defineProperty(exports, "__esModule", { value: true });
82
126
  const alot_1 = require("alot");
@@ -86,7 +130,7 @@ const config_2 = _src_config;
86
130
  const constants_1 = _src_constants;
87
131
  const atma_io_1 = require("atma-io");
88
132
  const _0xweb_1 = require("0xweb");
89
- const _path_1 = require("./utils/$path");
133
+ const _path_1 = _src_utils__path;
90
134
  const taskArgsStore = { compileAll: false };
91
135
  (0, config_1.extendConfig)((config) => {
92
136
  config['0xweb'] = (0, config_2.resolveConfig)(config);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@0xweb/hardhat",
3
3
  "description": "Hardhat plugin for 0xweb",
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "main": "./lib/index.js",
6
6
  "author": {
7
7
  "name": "Alex Kit",
@@ -62,7 +62,7 @@
62
62
  "atma-io",
63
63
  "0xweb",
64
64
  "^hardhat",
65
- "path"
65
+ "^path$"
66
66
  ],
67
67
  "middlewares": {
68
68
  "ts": [