feat: improve cli to generate proper metadata and schema by default

This commit is contained in:
Ruben Fiszel
2024-01-21 20:57:01 +01:00
parent 6c95a269d6
commit d1eed4e09d
2 changed files with 71 additions and 19 deletions
+9 -2
View File
@@ -440,6 +440,11 @@ export const isWhitelisted = (p: string) => {
export async function ignoreF() {
try {
const ignoreContent = await Deno.readTextFile(".wmillignore");
const condensed = ignoreContent
.split("\n")
.filter((l) => l != "" && !l.startsWith("#"))
.join(", ");
log.info(colors.gray(`Using .wmillignore file (${condensed})`));
const ign = ignore.default().add(ignoreContent);
// new Gitignore.default({ initialRules: ignoreContent.split("\n")}).ignoreContent).compile();
return (p: string, isDirectory: boolean) => {
@@ -781,7 +786,8 @@ async function push(
workspace.workspaceId,
alreadySynced,
opts.message,
lockfileUseArray
lockfileUseArray,
opts
)
) {
if (!opts.raw && stateExists) {
@@ -820,7 +826,8 @@ async function push(
workspace.workspaceId,
alreadySynced,
opts.message,
lockfileUseArray
lockfileUseArray,
opts
)
) {
continue;