From 09de42b2d0ab24f8423ae5a32cf01b1a06b22bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Acier?= Date: Mon, 8 Nov 2021 20:23:22 +0100 Subject: [PATCH] 0.3.10 (#135) --- Drakefile.ts | 6 ++++-- README.md | 2 +- deps.ts | 28 ++++++++++++++-------------- src/commands/info.ts | 2 +- src/commands/publish.ts | 4 +++- src/version.ts | 2 +- 6 files changed, 24 insertions(+), 20 deletions(-) diff --git a/Drakefile.ts b/Drakefile.ts index 048050d..a871813 100644 --- a/Drakefile.ts +++ b/Drakefile.ts @@ -27,8 +27,10 @@ task("lint", [], async function () { desc("Links the nest.land API key."); task("link", [], async function () { await sh( - `deno run -A --unstable eggs.ts link ${Deno.env.get("NESTAPIKEY") || - "null"} -Do`, + `deno run -A --unstable eggs.ts link ${ + Deno.env.get("NESTAPIKEY") || + "null" + } -Do`, ); }); diff --git a/README.md b/README.md index e9cce6a..e7ed21c 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ **Note: You need to upgrade to Deno v1.6.0 or newer in order to use our CLI.** ```shell script -deno install -Afq --unstable https://x.nest.land/eggs@0.3.8/eggs.ts +deno install -Afq --unstable https://x.nest.land/eggs@0.3.10/eggs.ts ``` For more information, see the [documentation](https://docs.nest.land/). diff --git a/deps.ts b/deps.ts index ed2c177..3f131a6 100644 --- a/deps.ts +++ b/deps.ts @@ -9,7 +9,7 @@ export { join, relative, resolve, -} from "https://x.nest.land/std@0.107.0/path/mod.ts"; +} from "https://x.nest.land/std@0.113.0/path/mod.ts"; export { exists, @@ -17,38 +17,38 @@ export { expandGlob, expandGlobSync, walkSync, -} from "https://x.nest.land/std@0.107.0/fs/mod.ts"; +} from "https://x.nest.land/std@0.113.0/fs/mod.ts"; -export * as log from "https://x.nest.land/std@0.107.0/log/mod.ts"; +export * as log from "https://x.nest.land/std@0.113.0/log/mod.ts"; -export { LogRecord } from "https://x.nest.land/std@0.107.0/log/logger.ts"; +export { LogRecord } from "https://x.nest.land/std@0.113.0/log/logger.ts"; -export type { LevelName } from "https://x.nest.land/std@0.107.0/log/levels.ts"; -export { LogLevels } from "https://x.nest.land/std@0.107.0/log/levels.ts"; +export type { LevelName } from "https://x.nest.land/std@0.113.0/log/levels.ts"; +export { LogLevels } from "https://x.nest.land/std@0.113.0/log/levels.ts"; -export { BaseHandler } from "https://x.nest.land/std@0.107.0/log/handlers.ts"; +export { BaseHandler } from "https://x.nest.land/std@0.113.0/log/handlers.ts"; -export * from "https://x.nest.land/std@0.107.0/fmt/colors.ts"; +export * from "https://x.nest.land/std@0.113.0/fmt/colors.ts"; export { assert, assertEquals, assertMatch, -} from "https://x.nest.land/std@0.107.0/testing/asserts.ts"; +} from "https://x.nest.land/std@0.113.0/testing/asserts.ts"; export { parse as parseYaml, stringify as stringifyYaml, -} from "https://x.nest.land/std@0.107.0/encoding/yaml.ts"; +} from "https://x.nest.land/std@0.113.0/encoding/yaml.ts"; /**************** cliffy ****************/ export { Command, CompletionsCommand, HelpCommand, -} from "https://x.nest.land/cliffy@0.19.5/command/mod.ts"; +} from "https://x.nest.land/cliffy@0.20.1/command/mod.ts"; -export { string as stringType } from "https://x.nest.land/cliffy@0.19.5/flags/types/string.ts"; +export { string as stringType } from "https://x.nest.land/cliffy@0.20.1/flags/types/string.ts"; export { Checkbox, @@ -56,9 +56,9 @@ export { Input, List, Select, -} from "https://x.nest.land/cliffy@0.19.5/prompt/mod.ts"; +} from "https://x.nest.land/cliffy@0.20.1/prompt/mod.ts"; -export type { ITypeInfo } from "https://x.nest.land/cliffy@0.19.5/flags/types.ts"; +export type { ITypeInfo } from "https://x.nest.land/cliffy@0.20.1/flags/types.ts"; /**************** semver ****************/ export * as semver from "https://deno.land/x/semver@v1.4.0/mod.ts"; diff --git a/src/commands/info.ts b/src/commands/info.ts index 7d6c871..4a437bf 100644 --- a/src/commands/info.ts +++ b/src/commands/info.ts @@ -44,7 +44,7 @@ export async function info(options: Options, file?: string) { let importsResolved = 0; const progress = () => - wait.text = (`${importsResolved} / ${importsFound} imports`); + wait.text = `${importsResolved} / ${importsFound} imports`; const onImportFound = (count: number) => { importsFound = count; progress(); diff --git a/src/commands/publish.ts b/src/commands/publish.ts index 0c2e0a9..73759a5 100644 --- a/src/commands/publish.ts +++ b/src/commands/publish.ts @@ -116,7 +116,7 @@ function gatherOptions( options.description && (cfg.description = options.description); options.entry && (cfg.entry = options.entry); options.unstable !== undefined && (cfg.unstable = options.unstable); - options.unlisted !== undefined && (cfg.unstable = options.unlisted); + options.unlisted !== undefined && (cfg.unlisted = options.unlisted); options.homepage && (cfg.homepage = urlType( { name: "homepage", value: options.homepage, label: "", type: "" }, @@ -129,6 +129,7 @@ function gatherOptions( options.checkInstallation !== undefined && (cfg.checkInstallation = options.checkInstallation); options.check !== undefined && (cfg.check = options.check); + options.yes !== undefined && (cfg.yes = options.yes); return cfg; } catch (err) { log.error(err); @@ -254,6 +255,7 @@ export async function publish(options: Options, name?: string) { } const [gatheredContext, contextIgnore] = await gatherContext(); + log.debug("Options:", options); const gatheredOptions = gatherOptions(options, name); if (!gatheredContext || !gatheredOptions) return; diff --git a/src/version.ts b/src/version.ts index 0fe271c..cff04f6 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const version = "0.3.9"; +export const version = "0.3.10";