@0xweb/hardhat 0.1.18 → 0.1.19

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 +2 -20
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -144,26 +144,8 @@ const taskArgsStore = { compileAll: false };
144
144
  .addOptionalParam('artifacts', 'Override the artifacts output directory')
145
145
  .addOptionalParam('root', 'Overrides root directory. If sources is also overridden must be the sub-folder of the sources dir')
146
146
  .addOptionalParam('package', 'Compile the contracts within a specific mono-repo package. Artifacts and 0xc classes will be placed in the package directory')
147
- .addOptionalParam('watch', 'Re-runs compilation task on changes', false, {
148
- name: 'boolean',
149
- validate(argName, argumentValue) { },
150
- parse(val) {
151
- if (val === '' || val === '1' || val === true || val === 'true') {
152
- return true;
153
- }
154
- return false;
155
- }
156
- })
157
- .addOptionalParam('tsgen', 'Skip the TypeScript class generation', true, {
158
- name: 'boolean',
159
- validate(key, value) { },
160
- parse(key, value) {
161
- if (value === '0' || value === 0 || value === false || value === 'false') {
162
- return false;
163
- }
164
- return true;
165
- }
166
- })
147
+ .addOptionalParam('tsgen', 'Skip the TypeScript class generation', true, config_1.types.boolean)
148
+ .addFlag('watch', 'Watch sources directory and reruns compilation task on changes')
167
149
  .setAction(async (compilationArgs, { run, config, artifacts }, runSuper) => {
168
150
  ConfigHelper.resetPaths(config.paths);
169
151
  if (compilationArgs.tsgen === false) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@0xweb/hardhat",
3
3
  "description": "0xweb plugin for Hardhat",
4
- "version": "0.1.18",
4
+ "version": "0.1.19",
5
5
  "main": "./lib/index.js",
6
6
  "author": {
7
7
  "name": "Alex Kit",