Skip to content

Commit

Permalink
Merge pull request #111 from nestdotland/dev
Browse files Browse the repository at this point in the history
0.3.3
  • Loading branch information
SteelAlloy authored Dec 10, 2020
2 parents 8b0e31d + 9c614b0 commit b2cd9ed
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/release-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ template: |
**Using Deno**
```sh
deno install -A -f --unstable -n eggs https://x.nest.land/eggs@$RESOLVED_VERSION/mod.ts
deno install -Afq --unstable -n eggs https://x.nest.land/eggs@$RESOLVED_VERSION/eggs.ts
```
**Using eggs**
Expand Down
6 changes: 3 additions & 3 deletions Drakefile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ 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`,
"null"} -Do`,
);
});

desc("Reports the details of what would have been published.");
task("dry-publish", [], async function () {
await sh(
`deno run -A --unstable eggs.ts publish eggs -doY --no-check --check-installation --entry eggs.ts --version ${version}-dev --dry-run `,
`deno run -A --unstable eggs.ts publish eggs -DoY --no-check --check-installation --entry eggs.ts --version ${version}-dev --dry-run `,
);
});

desc("Publishes eggs to the nest.land registry.");
task("publish", [], async function () {
await sh(
`deno run -A --unstable eggs.ts publish eggs -doY --no-check --check-installation --entry eggs.ts --version ${version}`,
`deno run -A --unstable eggs.ts publish eggs -DoY --no-check --check-installation --entry eggs.ts --version ${version}`,
);
});

Expand Down
28 changes: 14 additions & 14 deletions deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,56 @@ export {
join,
relative,
resolve,
} from "https://x.nest.land/std@0.75.0/path/mod.ts";
} from "https://x.nest.land/std@0.80.0/path/mod.ts";

export {
exists,
existsSync,
expandGlob,
expandGlobSync,
walkSync,
} from "https://x.nest.land/std@0.75.0/fs/mod.ts";
} from "https://x.nest.land/std@0.80.0/fs/mod.ts";

export * as log from "https://x.nest.land/std@0.75.0/log/mod.ts";
export * as log from "https://x.nest.land/std@0.80.0/log/mod.ts";

export { LogRecord } from "https://x.nest.land/std@0.75.0/log/logger.ts";
export { LogRecord } from "https://x.nest.land/std@0.80.0/log/logger.ts";

export type { LevelName } from "https://x.nest.land/std@0.75.0/log/levels.ts";
export { LogLevels } from "https://x.nest.land/std@0.75.0/log/levels.ts";
export type { LevelName } from "https://x.nest.land/std@0.80.0/log/levels.ts";
export { LogLevels } from "https://x.nest.land/std@0.80.0/log/levels.ts";

export { BaseHandler } from "https://x.nest.land/std@0.75.0/log/handlers.ts";
export { BaseHandler } from "https://x.nest.land/std@0.80.0/log/handlers.ts";

export * from "https://x.nest.land/std@0.75.0/fmt/colors.ts";
export * from "https://x.nest.land/std@0.80.0/fmt/colors.ts";

export {
assert,
assertEquals,
assertMatch,
} from "https://x.nest.land/std@0.75.0/testing/asserts.ts";
} from "https://x.nest.land/std@0.80.0/testing/asserts.ts";

export {
parse as parseYaml,
stringify as stringifyYaml,
} from "https://x.nest.land/std@0.75.0/encoding/yaml.ts";
} from "https://x.nest.land/std@0.80.0/encoding/yaml.ts";

/**************** cliffy ****************/
export {
Command,
CompletionsCommand,
HelpCommand,
} from "https://x.nest.land/cliffy@0.14.3/command/mod.ts";
} from "https://x.nest.land/cliffy@0.16.0/command/mod.ts";

export { string as stringType } from "https://x.nest.land/cliffy@0.14.3/flags/types/string.ts";
export { string as stringType } from "https://x.nest.land/cliffy@0.16.0/flags/types/string.ts";

export {
Checkbox,
Confirm,
Input,
List,
Select,
} from "https://x.nest.land/cliffy@0.14.3/prompt/mod.ts";
} from "https://x.nest.land/cliffy@0.16.0/prompt/mod.ts";

export type { ITypeInfo } from "https://x.nest.land/cliffy@0.14.3/flags/types.ts";
export type { ITypeInfo } from "https://x.nest.land/cliffy@0.16.0/flags/types.ts";

/**************** semver ****************/
export * as semver from "https://deno.land/x/[email protected]/mod.ts";
Expand Down
2 changes: 1 addition & 1 deletion eggs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const eggs = new Command<DefaultOptions, []>()
.description(
"nest.land - A module registry and CDN for Deno, on the permaweb",
)
.option("-d, --debug", "Print additional information.", { global: true })
.option("-D, --debug", "Print additional information.", { global: true })
.option(
"-o, --output-log",
"Create a log file after command completion.",
Expand Down
5 changes: 2 additions & 3 deletions src/commands/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,7 @@ export const publishCommand = new Command<Options, Arguments>()
"Simulates a dummy installation and check for missing files in the dependency tree.",
)
.option(
"--check",
`Use ${italic("--no-check")} to not perform any check.`,
{ default: true },
"--no-check",
`Use this option to not perform any check.`,
)
.action(publish);
2 changes: 1 addition & 1 deletion src/context/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function configFormat(path: string): ConfigFormat {

/** writeYaml. (similar to writeJson)
* @private */
async function writeYaml(filename: string, content: string): Promise<void> {
function writeYaml(filename: string, content: string): void {
return Deno.writeFileSync(filename, new TextEncoder().encode(content));
}

Expand Down
8 changes: 4 additions & 4 deletions src/utilities/json.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type Replacer = (key: string, value: any) => any;
type Replacer = (key: string, value: unknown) => unknown;

export interface WriteJsonOptions extends Deno.WriteFileOptions {
replacer?: Array<number | string> | Replacer;
Expand All @@ -9,7 +9,7 @@ export interface WriteJsonOptions extends Deno.WriteFileOptions {
function serialize(
filePath: string,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
object: any,
object: unknown,
options: WriteJsonOptions,
): string {
try {
Expand All @@ -29,7 +29,7 @@ function serialize(
export async function writeJson(
filePath: string,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
object: any,
object: unknown,
options: WriteJsonOptions = {},
): Promise<void> {
const jsonString = serialize(filePath, object, options);
Expand All @@ -44,7 +44,7 @@ export async function writeJson(
export function writeJsonSync(
filePath: string,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
object: any,
object: unknown,
options: WriteJsonOptions = {},
): void {
const jsonString = serialize(filePath, object, options);
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "0.3.2";
export const version = "0.3.3";

0 comments on commit b2cd9ed

Please sign in to comment.