@deployoor/hardhat 0.1.0
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/LICENSE +21 -0
- package/README.md +67 -0
- package/dist/index.cjs +54 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +15 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +55 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +69 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Valerio Leo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# @deployoor/hardhat
|
|
2
|
+
|
|
3
|
+
> A [Hardhat](https://hardhat.org) plugin that regenerates [deployoor](../deployoor)'s typed deployers automatically after every `hardhat compile`.
|
|
4
|
+
|
|
5
|
+
Without it, the flow is two steps — `hardhat compile` then `deployoor generate`. With it, `hardhat compile` runs `deployoor generate` in process the moment fresh `artifacts/` are written: no extra terminal, no separate command, no stale deployers. Edit a contract, compile, and the typed `getOrDeploy<Name>` functions are already up to date.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add -D @deployoor/hardhat deployoor viem
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
You still need a `deployoor.config.ts` (run `npx deployoor init` once).
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
// hardhat.config.ts
|
|
19
|
+
import "@deployoor/hardhat";
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
solidity: "0.8.24",
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```js
|
|
27
|
+
// hardhat.config.js (CommonJS)
|
|
28
|
+
require("@deployoor/hardhat");
|
|
29
|
+
|
|
30
|
+
module.exports = { solidity: "0.8.24" };
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Now every compile regenerates the deployers:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx hardhat compile
|
|
37
|
+
# deployoor: generated 3 deployer file(s)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Options
|
|
41
|
+
|
|
42
|
+
Configure under a `deployoor` key in your Hardhat config:
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
export default {
|
|
46
|
+
solidity: "0.8.24",
|
|
47
|
+
deployoor: {
|
|
48
|
+
generate: false, // opt out of auto-generation (default: true)
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
| Option | Type | Default | Description |
|
|
54
|
+
| ---------- | --------- | ------- | ------------------------------------------------------ |
|
|
55
|
+
| `generate` | `boolean` | `true` | Run `deployoor generate` after each `hardhat compile`. |
|
|
56
|
+
|
|
57
|
+
Output location, which contracts to include, and the deployments path all come from your `deployoor.config.ts` — this plugin only decides _when_ generation runs.
|
|
58
|
+
|
|
59
|
+
## Notes
|
|
60
|
+
|
|
61
|
+
- **Compile never breaks.** If generation fails (no config yet, nothing compiled, a bad `include`), the plugin logs a warning and lets `hardhat compile` finish — it never rethrows.
|
|
62
|
+
- It calls deployoor's programmatic `generateDeployers` (exported from [`deployoor/generate`](../deployoor)) — exactly what the `deployoor generate` CLI runs, so results are identical whichever way you trigger it.
|
|
63
|
+
- Foundry users get the same behavior via `forge build`'s hooks or a `forge build && deployoor generate` script; this plugin is the Hardhat-native convenience.
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
MIT
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
let hardhat_config_js = require("hardhat/config.js");
|
|
2
|
+
let hardhat_builtin_tasks_task_names_js = require("hardhat/builtin-tasks/task-names.js");
|
|
3
|
+
let deployoor_generate = require("deployoor/generate");
|
|
4
|
+
require("hardhat/types/config.js");
|
|
5
|
+
//#region src/runner.ts
|
|
6
|
+
/**
|
|
7
|
+
* Run `deployoor generate` after a Hardhat compile. A generation failure (e.g. no config yet,
|
|
8
|
+
* nothing compiled) is reported but never rethrown, so a deployoor misconfiguration can never
|
|
9
|
+
* break `hardhat compile` itself.
|
|
10
|
+
*/
|
|
11
|
+
const runAfterCompile = async (opts) => {
|
|
12
|
+
if (!opts.enabled) return;
|
|
13
|
+
const log = opts.log ?? {
|
|
14
|
+
info: (message) => console.log(message),
|
|
15
|
+
warn: (message) => console.warn(message)
|
|
16
|
+
};
|
|
17
|
+
try {
|
|
18
|
+
const files = await opts.generate({ root: opts.root });
|
|
19
|
+
log.info(`deployoor: generated ${files.length} deployer file(s)`);
|
|
20
|
+
} catch (error) {
|
|
21
|
+
log.warn(`deployoor: skipped generate — ${error instanceof Error ? error.message : String(error)}`);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/index.ts
|
|
26
|
+
/**
|
|
27
|
+
* @deployoor/hardhat — regenerate deployoor's typed deployers automatically after every
|
|
28
|
+
* `hardhat compile`, in process. No extra terminal, no separate `deployoor generate` step:
|
|
29
|
+
* the moment Hardhat writes fresh `artifacts/`, the deployers are rebuilt from them.
|
|
30
|
+
*
|
|
31
|
+
* Add it to your Hardhat config:
|
|
32
|
+
*
|
|
33
|
+
* // hardhat.config.ts
|
|
34
|
+
* import "@deployoor/hardhat";
|
|
35
|
+
* // hardhat.config.js
|
|
36
|
+
* require("@deployoor/hardhat");
|
|
37
|
+
*
|
|
38
|
+
* Opt out per project with `deployoor: { generate: false }` in the Hardhat config.
|
|
39
|
+
*/
|
|
40
|
+
(0, hardhat_config_js.extendConfig)((config, userConfig) => {
|
|
41
|
+
config.deployoor = { generate: userConfig.deployoor?.generate ?? true };
|
|
42
|
+
});
|
|
43
|
+
(0, hardhat_config_js.task)(hardhat_builtin_tasks_task_names_js.TASK_COMPILE).setAction(async (args, hre, runSuper) => {
|
|
44
|
+
const result = await runSuper(args);
|
|
45
|
+
await runAfterCompile({
|
|
46
|
+
root: hre.config.paths.root,
|
|
47
|
+
enabled: hre.config.deployoor.generate,
|
|
48
|
+
generate: deployoor_generate.generateDeployers
|
|
49
|
+
});
|
|
50
|
+
return result;
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["TASK_COMPILE","generateDeployers"],"sources":["../src/runner.ts","../src/index.ts"],"sourcesContent":["/** The slice of a generated file this plugin reports on (the full record carries `contents` too). */\nexport interface GeneratedFileInfo {\n readonly path: string;\n}\n\nexport interface RunAfterCompileOptions {\n /** Project root handed to `generateDeployers` (Hardhat's `config.paths.root`). */\n readonly root: string;\n /** When false, generation is skipped — the `deployoor: { generate: false }` opt-out. */\n readonly enabled: boolean;\n /** The generate function, injected so this wiring is testable without a Hardhat runtime. */\n readonly generate: (opts: { root: string }) => Promise<ReadonlyArray<GeneratedFileInfo>>;\n /** Where progress/failures are reported. Defaults to the console. */\n readonly log?: { info: (message: string) => void; warn: (message: string) => void };\n}\n\n/**\n * Run `deployoor generate` after a Hardhat compile. A generation failure (e.g. no config yet,\n * nothing compiled) is reported but never rethrown, so a deployoor misconfiguration can never\n * break `hardhat compile` itself.\n */\nexport const runAfterCompile = async (opts: RunAfterCompileOptions): Promise<void> => {\n if (!opts.enabled) return;\n const log = opts.log ?? {\n info: (message: string) => console.log(message),\n warn: (message: string) => console.warn(message),\n };\n try {\n const files = await opts.generate({ root: opts.root });\n log.info(`deployoor: generated ${files.length} deployer file(s)`);\n } catch (error) {\n log.warn(`deployoor: skipped generate — ${error instanceof Error ? error.message : String(error)}`);\n }\n};\n","import { extendConfig, task } from \"hardhat/config\";\nimport { TASK_COMPILE } from \"hardhat/builtin-tasks/task-names\";\nimport { generateDeployers } from \"deployoor/generate\";\nimport { runAfterCompile } from \"./runner\";\nimport \"./type-extensions\";\n\n/**\n * @deployoor/hardhat — regenerate deployoor's typed deployers automatically after every\n * `hardhat compile`, in process. No extra terminal, no separate `deployoor generate` step:\n * the moment Hardhat writes fresh `artifacts/`, the deployers are rebuilt from them.\n *\n * Add it to your Hardhat config:\n *\n * // hardhat.config.ts\n * import \"@deployoor/hardhat\";\n * // hardhat.config.js\n * require(\"@deployoor/hardhat\");\n *\n * Opt out per project with `deployoor: { generate: false }` in the Hardhat config.\n */\nextendConfig((config, userConfig) => {\n config.deployoor = { generate: userConfig.deployoor?.generate ?? true };\n});\n\n// Wrap the built-in compile: run it, then regenerate from the fresh artifacts.\ntask(TASK_COMPILE).setAction(async (args, hre, runSuper) => {\n const result = await runSuper(args);\n await runAfterCompile({\n root: hre.config.paths.root,\n enabled: hre.config.deployoor.generate,\n generate: generateDeployers,\n });\n return result;\n});\n"],"mappings":";;;;;;;;;;AAqBA,MAAa,kBAAkB,OAAO,SAAgD;CACpF,IAAI,CAAC,KAAK,SAAS;CACnB,MAAM,MAAM,KAAK,OAAO;EACtB,OAAO,YAAoB,QAAQ,IAAI,OAAO;EAC9C,OAAO,YAAoB,QAAQ,KAAK,OAAO;CACjD;CACA,IAAI;EACF,MAAM,QAAQ,MAAM,KAAK,SAAS,EAAE,MAAM,KAAK,KAAK,CAAC;EACrD,IAAI,KAAK,wBAAwB,MAAM,OAAO,kBAAkB;CAClE,SAAS,OAAO;EACd,IAAI,KAAK,iCAAiC,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,GAAG;CACpG;AACF;;;;;;;;;;;;;;;;;qCCbc,QAAQ,eAAe;CACnC,OAAO,YAAY,EAAE,UAAU,WAAW,WAAW,YAAY,KAAK;AACxE,CAAC;4BAGIA,oCAAAA,YAAY,CAAC,CAAC,UAAU,OAAO,MAAM,KAAK,aAAa;CAC1D,MAAM,SAAS,MAAM,SAAS,IAAI;CAClC,MAAM,gBAAgB;EACpB,MAAM,IAAI,OAAO,MAAM;EACvB,SAAS,IAAI,OAAO,UAAU;EAC9B,UAAUC,mBAAAA;CACZ,CAAC;CACD,OAAO;AACT,CAAC"}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/type-extensions.d.ts
|
|
2
|
+
declare module "hardhat/types/config" {
|
|
3
|
+
interface HardhatUserConfig {
|
|
4
|
+
/** deployoor options. `generate` (default `true`): run `deployoor generate` after `hardhat compile`. */
|
|
5
|
+
deployoor?: {
|
|
6
|
+
readonly generate?: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
interface HardhatConfig {
|
|
10
|
+
deployoor: {
|
|
11
|
+
readonly generate: boolean;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
} //# sourceMappingURL=type-extensions.d.ts.map
|
|
15
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/type-extensions.ts"],"mappings":";;YAGY,iBAAA;IAHkB;IAK1B,SAAA;MAAA,SACW,QAAA;IAAA;EAAA;EAAA,UAIH,aAAA;IACR,SAAA;MAAA,SACW,QAAA;IAAA;EAAA;AAAA"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/type-extensions.d.ts
|
|
2
|
+
declare module "hardhat/types/config" {
|
|
3
|
+
interface HardhatUserConfig {
|
|
4
|
+
/** deployoor options. `generate` (default `true`): run `deployoor generate` after `hardhat compile`. */
|
|
5
|
+
deployoor?: {
|
|
6
|
+
readonly generate?: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
interface HardhatConfig {
|
|
10
|
+
deployoor: {
|
|
11
|
+
readonly generate: boolean;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
} //# sourceMappingURL=type-extensions.d.ts.map
|
|
15
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/type-extensions.ts"],"mappings":";;YAGY,iBAAA;IAHkB;IAK1B,SAAA;MAAA,SACW,QAAA;IAAA;EAAA;EAAA,UAIH,aAAA;IACR,SAAA;MAAA,SACW,QAAA;IAAA;EAAA;AAAA"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { extendConfig, task } from "hardhat/config.js";
|
|
2
|
+
import { TASK_COMPILE } from "hardhat/builtin-tasks/task-names.js";
|
|
3
|
+
import { generateDeployers } from "deployoor/generate";
|
|
4
|
+
import "hardhat/types/config.js";
|
|
5
|
+
//#region src/runner.ts
|
|
6
|
+
/**
|
|
7
|
+
* Run `deployoor generate` after a Hardhat compile. A generation failure (e.g. no config yet,
|
|
8
|
+
* nothing compiled) is reported but never rethrown, so a deployoor misconfiguration can never
|
|
9
|
+
* break `hardhat compile` itself.
|
|
10
|
+
*/
|
|
11
|
+
const runAfterCompile = async (opts) => {
|
|
12
|
+
if (!opts.enabled) return;
|
|
13
|
+
const log = opts.log ?? {
|
|
14
|
+
info: (message) => console.log(message),
|
|
15
|
+
warn: (message) => console.warn(message)
|
|
16
|
+
};
|
|
17
|
+
try {
|
|
18
|
+
const files = await opts.generate({ root: opts.root });
|
|
19
|
+
log.info(`deployoor: generated ${files.length} deployer file(s)`);
|
|
20
|
+
} catch (error) {
|
|
21
|
+
log.warn(`deployoor: skipped generate — ${error instanceof Error ? error.message : String(error)}`);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/index.ts
|
|
26
|
+
/**
|
|
27
|
+
* @deployoor/hardhat — regenerate deployoor's typed deployers automatically after every
|
|
28
|
+
* `hardhat compile`, in process. No extra terminal, no separate `deployoor generate` step:
|
|
29
|
+
* the moment Hardhat writes fresh `artifacts/`, the deployers are rebuilt from them.
|
|
30
|
+
*
|
|
31
|
+
* Add it to your Hardhat config:
|
|
32
|
+
*
|
|
33
|
+
* // hardhat.config.ts
|
|
34
|
+
* import "@deployoor/hardhat";
|
|
35
|
+
* // hardhat.config.js
|
|
36
|
+
* require("@deployoor/hardhat");
|
|
37
|
+
*
|
|
38
|
+
* Opt out per project with `deployoor: { generate: false }` in the Hardhat config.
|
|
39
|
+
*/
|
|
40
|
+
extendConfig((config, userConfig) => {
|
|
41
|
+
config.deployoor = { generate: userConfig.deployoor?.generate ?? true };
|
|
42
|
+
});
|
|
43
|
+
task(TASK_COMPILE).setAction(async (args, hre, runSuper) => {
|
|
44
|
+
const result = await runSuper(args);
|
|
45
|
+
await runAfterCompile({
|
|
46
|
+
root: hre.config.paths.root,
|
|
47
|
+
enabled: hre.config.deployoor.generate,
|
|
48
|
+
generate: generateDeployers
|
|
49
|
+
});
|
|
50
|
+
return result;
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
export {};
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/runner.ts","../src/index.ts"],"sourcesContent":["/** The slice of a generated file this plugin reports on (the full record carries `contents` too). */\nexport interface GeneratedFileInfo {\n readonly path: string;\n}\n\nexport interface RunAfterCompileOptions {\n /** Project root handed to `generateDeployers` (Hardhat's `config.paths.root`). */\n readonly root: string;\n /** When false, generation is skipped — the `deployoor: { generate: false }` opt-out. */\n readonly enabled: boolean;\n /** The generate function, injected so this wiring is testable without a Hardhat runtime. */\n readonly generate: (opts: { root: string }) => Promise<ReadonlyArray<GeneratedFileInfo>>;\n /** Where progress/failures are reported. Defaults to the console. */\n readonly log?: { info: (message: string) => void; warn: (message: string) => void };\n}\n\n/**\n * Run `deployoor generate` after a Hardhat compile. A generation failure (e.g. no config yet,\n * nothing compiled) is reported but never rethrown, so a deployoor misconfiguration can never\n * break `hardhat compile` itself.\n */\nexport const runAfterCompile = async (opts: RunAfterCompileOptions): Promise<void> => {\n if (!opts.enabled) return;\n const log = opts.log ?? {\n info: (message: string) => console.log(message),\n warn: (message: string) => console.warn(message),\n };\n try {\n const files = await opts.generate({ root: opts.root });\n log.info(`deployoor: generated ${files.length} deployer file(s)`);\n } catch (error) {\n log.warn(`deployoor: skipped generate — ${error instanceof Error ? error.message : String(error)}`);\n }\n};\n","import { extendConfig, task } from \"hardhat/config\";\nimport { TASK_COMPILE } from \"hardhat/builtin-tasks/task-names\";\nimport { generateDeployers } from \"deployoor/generate\";\nimport { runAfterCompile } from \"./runner\";\nimport \"./type-extensions\";\n\n/**\n * @deployoor/hardhat — regenerate deployoor's typed deployers automatically after every\n * `hardhat compile`, in process. No extra terminal, no separate `deployoor generate` step:\n * the moment Hardhat writes fresh `artifacts/`, the deployers are rebuilt from them.\n *\n * Add it to your Hardhat config:\n *\n * // hardhat.config.ts\n * import \"@deployoor/hardhat\";\n * // hardhat.config.js\n * require(\"@deployoor/hardhat\");\n *\n * Opt out per project with `deployoor: { generate: false }` in the Hardhat config.\n */\nextendConfig((config, userConfig) => {\n config.deployoor = { generate: userConfig.deployoor?.generate ?? true };\n});\n\n// Wrap the built-in compile: run it, then regenerate from the fresh artifacts.\ntask(TASK_COMPILE).setAction(async (args, hre, runSuper) => {\n const result = await runSuper(args);\n await runAfterCompile({\n root: hre.config.paths.root,\n enabled: hre.config.deployoor.generate,\n generate: generateDeployers,\n });\n return result;\n});\n"],"mappings":";;;;;;;;;;AAqBA,MAAa,kBAAkB,OAAO,SAAgD;CACpF,IAAI,CAAC,KAAK,SAAS;CACnB,MAAM,MAAM,KAAK,OAAO;EACtB,OAAO,YAAoB,QAAQ,IAAI,OAAO;EAC9C,OAAO,YAAoB,QAAQ,KAAK,OAAO;CACjD;CACA,IAAI;EACF,MAAM,QAAQ,MAAM,KAAK,SAAS,EAAE,MAAM,KAAK,KAAK,CAAC;EACrD,IAAI,KAAK,wBAAwB,MAAM,OAAO,kBAAkB;CAClE,SAAS,OAAO;EACd,IAAI,KAAK,iCAAiC,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,GAAG;CACpG;AACF;;;;;;;;;;;;;;;;;ACbA,cAAc,QAAQ,eAAe;CACnC,OAAO,YAAY,EAAE,UAAU,WAAW,WAAW,YAAY,KAAK;AACxE,CAAC;AAGD,KAAK,YAAY,CAAC,CAAC,UAAU,OAAO,MAAM,KAAK,aAAa;CAC1D,MAAM,SAAS,MAAM,SAAS,IAAI;CAClC,MAAM,gBAAgB;EACpB,MAAM,IAAI,OAAO,MAAM;EACvB,SAAS,IAAI,OAAO,UAAU;EAC9B,UAAU;CACZ,CAAC;CACD,OAAO;AACT,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@deployoor/hardhat",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Hardhat plugin: regenerate deployoor's typed deployers automatically after every `hardhat compile`.",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"ethereum",
|
|
9
|
+
"evm",
|
|
10
|
+
"hardhat",
|
|
11
|
+
"hardhat-plugin",
|
|
12
|
+
"deployments",
|
|
13
|
+
"smart-contracts",
|
|
14
|
+
"codegen"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "Valerio Leo",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": {
|
|
24
|
+
"types": "./dist/index.d.mts",
|
|
25
|
+
"default": "./dist/index.mjs"
|
|
26
|
+
},
|
|
27
|
+
"require": {
|
|
28
|
+
"types": "./dist/index.d.cts",
|
|
29
|
+
"default": "./dist/index.cjs"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=18"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"deployoor": "*",
|
|
41
|
+
"hardhat": "^2"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^22.15.3",
|
|
45
|
+
"hardhat": "^2.22.0",
|
|
46
|
+
"tsdown": "^0.22.3",
|
|
47
|
+
"typescript": "^5.9.3",
|
|
48
|
+
"unrun": "^0.3.1",
|
|
49
|
+
"vitest": "^4.0.17",
|
|
50
|
+
"deployoor": "0.1.0"
|
|
51
|
+
},
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public"
|
|
54
|
+
},
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "git+https://github.com/valerioleo/deployoor.git",
|
|
58
|
+
"directory": "packages/deployoor-hardhat"
|
|
59
|
+
},
|
|
60
|
+
"homepage": "https://github.com/valerioleo/deployoor/tree/main/packages/deployoor-hardhat#readme",
|
|
61
|
+
"bugs": {
|
|
62
|
+
"url": "https://github.com/valerioleo/deployoor/issues"
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "tsdown",
|
|
66
|
+
"typecheck": "tsc --noEmit",
|
|
67
|
+
"test": "vitest run"
|
|
68
|
+
}
|
|
69
|
+
}
|