Skip to content

Commit aa7441e

Browse files
dhermankjvalencik
andauthored
nit: mark org field as optional in typecast
Co-authored-by: K.J. Valencik <kjvalencik@gmail.com>
1 parent 24534d9 commit aa7441e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/create-neon/src/bin/create-neon.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ try {
4242
const [pkg] = opts._unknown;
4343
const { org, basename } = /^((?<org>@[^/]+)\/)?(?<basename>.*)/.exec(pkg)
4444
?.groups as {
45-
org: string;
45+
org?: string;
4646
basename: string;
4747
};
4848
const fullName = org ? `${org}/${basename}` : basename;

0 commit comments

Comments
 (0)