feat(*.liquid): apply prettier to liquid templates

- offer to create tag when none is found while adding a link from cli
- fix tag display in search
This commit is contained in:
Cory Dransfeldt 2025-06-16 14:40:54 -07:00
parent 49e21d574e
commit efe701f939
No known key found for this signature in database
112 changed files with 1319 additions and 1134 deletions

View file

@ -1,13 +1,13 @@
import fs from 'fs-extra';
import path from 'path';
import inquirer from 'inquirer';
import { execSync } from 'child_process';
import { fileURLToPath } from 'url';
import fs from "fs-extra";
import path from "path";
import inquirer from "inquirer";
import { execSync } from "child_process";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const rootDir = path.resolve(__dirname, '..', '..');
const packageJsonPath = path.join(rootDir, 'package.json');
const rootDir = path.resolve(__dirname, "..", "..");
const packageJsonPath = path.join(rootDir, "package.json");
export const runRootScript = async (scriptArg) => {
const pkg = await fs.readJson(packageJsonPath);
@ -17,9 +17,9 @@ export const runRootScript = async (scriptArg) => {
if (!script) {
const { selected } = await inquirer.prompt([
{
type: 'list',
name: 'selected',
message: 'Select a script to run:',
type: "list",
name: "selected",
message: "Select a script to run:",
choices: Object.keys(scripts)
}
]);
@ -34,7 +34,7 @@ export const runRootScript = async (scriptArg) => {
try {
execSync(`npm run ${script}`, {
stdio: 'inherit',
stdio: "inherit",
cwd: rootDir
});
} catch (err) {