Skip to content

Commit b2cd9ed

Browse files
authored
Merge pull request #111 from nestdotland/dev
0.3.3
2 parents 8b0e31d + 9c614b0 commit b2cd9ed

File tree

8 files changed

+27
-28
lines changed

8 files changed

+27
-28
lines changed

.github/release-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ template: |
3636
**Using Deno**
3737
3838
```sh
39-
deno install -A -f --unstable -n eggs https://x.nest.land/eggs@$RESOLVED_VERSION/mod.ts
39+
deno install -Afq --unstable -n eggs https://x.nest.land/eggs@$RESOLVED_VERSION/eggs.ts
4040
```
4141
4242
**Using eggs**

Drakefile.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ desc("Links the nest.land API key.");
3535
task("link", [], async function () {
3636
await sh(
3737
`deno run -A --unstable eggs.ts link ${Deno.env.get("NESTAPIKEY") ||
38-
"null"} -do`,
38+
"null"} -Do`,
3939
);
4040
});
4141

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

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

deps.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,56 +9,56 @@ export {
99
join,
1010
relative,
1111
resolve,
12-
} from "https://x.nest.land/std@0.75.0/path/mod.ts";
12+
} from "https://x.nest.land/std@0.80.0/path/mod.ts";
1313

1414
export {
1515
exists,
1616
existsSync,
1717
expandGlob,
1818
expandGlobSync,
1919
walkSync,
20-
} from "https://x.nest.land/std@0.75.0/fs/mod.ts";
20+
} from "https://x.nest.land/std@0.80.0/fs/mod.ts";
2121

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

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

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

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

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

3333
export {
3434
assert,
3535
assertEquals,
3636
assertMatch,
37-
} from "https://x.nest.land/std@0.75.0/testing/asserts.ts";
37+
} from "https://x.nest.land/std@0.80.0/testing/asserts.ts";
3838

3939
export {
4040
parse as parseYaml,
4141
stringify as stringifyYaml,
42-
} from "https://x.nest.land/std@0.75.0/encoding/yaml.ts";
42+
} from "https://x.nest.land/std@0.80.0/encoding/yaml.ts";
4343

4444
/**************** cliffy ****************/
4545
export {
4646
Command,
4747
CompletionsCommand,
4848
HelpCommand,
49-
} from "https://x.nest.land/cliffy@0.14.3/command/mod.ts";
49+
} from "https://x.nest.land/cliffy@0.16.0/command/mod.ts";
5050

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

5353
export {
5454
Checkbox,
5555
Confirm,
5656
Input,
5757
List,
5858
Select,
59-
} from "https://x.nest.land/cliffy@0.14.3/prompt/mod.ts";
59+
} from "https://x.nest.land/cliffy@0.16.0/prompt/mod.ts";
6060

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

6363
/**************** semver ****************/
6464
export * as semver from "https://deno.land/x/semver@v1.0.0/mod.ts";

eggs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const eggs = new Command<DefaultOptions, []>()
5151
.description(
5252
"nest.land - A module registry and CDN for Deno, on the permaweb",
5353
)
54-
.option("-d, --debug", "Print additional information.", { global: true })
54+
.option("-D, --debug", "Print additional information.", { global: true })
5555
.option(
5656
"-o, --output-log",
5757
"Create a log file after command completion.",

src/commands/publish.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,7 @@ export const publishCommand = new Command<Options, Arguments>()
481481
"Simulates a dummy installation and check for missing files in the dependency tree.",
482482
)
483483
.option(
484-
"--check",
485-
`Use ${italic("--no-check")} to not perform any check.`,
486-
{ default: true },
484+
"--no-check",
485+
`Use this option to not perform any check.`,
487486
)
488487
.action(publish);

src/context/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function configFormat(path: string): ConfigFormat {
6969

7070
/** writeYaml. (similar to writeJson)
7171
* @private */
72-
async function writeYaml(filename: string, content: string): Promise<void> {
72+
function writeYaml(filename: string, content: string): void {
7373
return Deno.writeFileSync(filename, new TextEncoder().encode(content));
7474
}
7575

src/utilities/json.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2-
type Replacer = (key: string, value: any) => any;
2+
type Replacer = (key: string, value: unknown) => unknown;
33

44
export interface WriteJsonOptions extends Deno.WriteFileOptions {
55
replacer?: Array<number | string> | Replacer;
@@ -9,7 +9,7 @@ export interface WriteJsonOptions extends Deno.WriteFileOptions {
99
function serialize(
1010
filePath: string,
1111
// eslint-disable-next-line @typescript-eslint/no-explicit-any
12-
object: any,
12+
object: unknown,
1313
options: WriteJsonOptions,
1414
): string {
1515
try {
@@ -29,7 +29,7 @@ function serialize(
2929
export async function writeJson(
3030
filePath: string,
3131
// eslint-disable-next-line @typescript-eslint/no-explicit-any
32-
object: any,
32+
object: unknown,
3333
options: WriteJsonOptions = {},
3434
): Promise<void> {
3535
const jsonString = serialize(filePath, object, options);
@@ -44,7 +44,7 @@ export async function writeJson(
4444
export function writeJsonSync(
4545
filePath: string,
4646
// eslint-disable-next-line @typescript-eslint/no-explicit-any
47-
object: any,
47+
object: unknown,
4848
options: WriteJsonOptions = {},
4949
): void {
5050
const jsonString = serialize(filePath, object, options);

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = "0.3.2";
1+
export const version = "0.3.3";

0 commit comments

Comments
 (0)