Skip to content

Commit

Permalink
Configuration file name updated, Axios and mkdirp removed, Dependenci…
Browse files Browse the repository at this point in the history
…es updated.
  • Loading branch information
darsan-in committed Nov 13, 2024
1 parent 02462f1 commit 317f415
Show file tree
Hide file tree
Showing 12 changed files with 2,215 additions and 2,038 deletions.
File renamed without changes.
11 changes: 4 additions & 7 deletions bin/richieMaker.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { rmSync, existsSync } from "fs";
import { readFile } from "fs/promises";
import { globSync } from "glob";
import { dirname, join, relative, basename } from "path";
import { existsSync, mkdirSync, rmSync } from "node:fs";
import { basename, dirname, join, relative } from "path";
import configuration from "../configLoader";
import { richies } from "../lib/options";

import { mkdirpSync } from "mkdirp";
import { richieOptions, richies } from "../lib/options";
import { richie } from "../richie";
const { reservedNames, preference } = configuration;
import { richieOptions } from "../lib/options";

const richieCarousals: Partial<richies>[] = [
"movie",
Expand Down Expand Up @@ -78,7 +75,7 @@ export async function makeRichie(

try {
//make dir
mkdirpSync(dirname(dest));
mkdirSync(dirname(dest));
} catch (err: any) {
/* console.log(err.code); */
}
Expand Down
7 changes: 3 additions & 4 deletions bin/schemaWriter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { existsSync } from "fs";
import { copyFile, readFile, writeFile } from "fs/promises";
import { mkdirpSync } from "mkdirp";
import { existsSync, mkdirSync } from "node:fs";
import { basename, dirname, join } from "path";

type isenseModes = "user" | "ws";
Expand Down Expand Up @@ -81,7 +80,7 @@ function createSettings(
};

if (mkParentFolder) {
mkdirpSync(dirname(configPath));
mkdirSync(dirname(configPath));
}

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -142,7 +141,7 @@ function writeSettings(
: schemaDestPath;

const schemaConfigSnippet: Record<string, any> = {
fileMatch: ["rjs.config.json"],
fileMatch: [".richiejs"],
/* schema file url */ url: schemaPath,
};

Expand Down
2 changes: 1 addition & 1 deletion configLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { existsSync, readFileSync } from "fs";
import { join } from "path";
import { configurationOptions } from "./lib/options";

const CONFIG_FILE_NAME = "rjs.config.json";
const CONFIG_FILE_NAME = ".richiejs";

const projectConfigFile = join(process.cwd(), CONFIG_FILE_NAME);
const projectHasConfig = existsSync(projectConfigFile);
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions conf_preproc.js → dev/conf_preproc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function removeCommentsFromFile(inputFilePath, outputFilePath) {
});
}

const inputFilePath = "newconf.jsonc";
const outputFilePath = "rjs.config.json";
const inputFilePath = "base.richiejs.jsonc";
const outputFilePath = ".richiejs";

removeCommentsFromFile(inputFilePath, outputFilePath);
Loading

0 comments on commit 317f415

Please sign in to comment.