Compare commits

..

3 Commits

4 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,5 @@
# [0.1.0-develop.19](https://git.lumeweb.com/LumeWeb/publish-kernel-module/compare/v0.1.0-develop.18...v0.1.0-develop.19) (2023-09-04)
# [0.1.0-develop.18](https://git.lumeweb.com/LumeWeb/publish-kernel-module/compare/v0.1.0-develop.17...v0.1.0-develop.18) (2023-09-04) # [0.1.0-develop.18](https://git.lumeweb.com/LumeWeb/publish-kernel-module/compare/v0.1.0-develop.17...v0.1.0-develop.18) (2023-09-04)
# [0.1.0-develop.17](https://git.lumeweb.com/LumeWeb/publish-kernel-module/compare/v0.1.0-develop.16...v0.1.0-develop.17) (2023-09-03) # [0.1.0-develop.17](https://git.lumeweb.com/LumeWeb/publish-kernel-module/compare/v0.1.0-develop.16...v0.1.0-develop.17) (2023-09-03)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/publish-kernel-module", "name": "@lumeweb/publish-kernel-module",
"version": "0.1.0-develop.18", "version": "0.1.0-develop.19",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/publish-kernel-module", "name": "@lumeweb/publish-kernel-module",
"version": "0.1.0-develop.18", "version": "0.1.0-develop.19",
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.48", "@lumeweb/libweb": "0.2.0-develop.48",
"@scure/bip39": "^1.2.1", "@scure/bip39": "^1.2.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/publish-kernel-module", "name": "@lumeweb/publish-kernel-module",
"version": "0.1.0-develop.18", "version": "0.1.0-develop.19",
"type": "module", "type": "module",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -50,12 +50,15 @@ if (["0", "false"].includes(seed as string)) {
seed = false as any; seed = false as any;
} }
if (!seed && seed === undefined) { if (!seed && seed === undefined) {
// @ts-ignore const seedFile = path.join(process.cwd(), ".module-seed");
seed = await prompts.prompts.password({ if (await fileExists(seedFile)) {
name: "module_seed", seed = await fs.readFile(seedFile, "utf8");
message: "Enter your module seed", }
validate: (prev) => prev && bip39.validateMnemonic(prev, wordlist),
}); if (!seed) {
seed = bip39.generateMnemonic(wordlist);
await fs.writeFile(seedFile, seed);
}
} }
const hdKey = seed const hdKey = seed