2023-06-25 02:18:23 +00:00
|
|
|
import { dirname, resolve } from "node:path";
|
|
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const DIR = dirname(fileURLToPath(import.meta.url));
|
|
|
|
const TEMPLATES = resolve(DIR, "..", "templates");
|
|
|
|
export const DEFAULT_VARIABLE = {
|
|
|
|
source: "src",
|
|
|
|
};
|
|
|
|
export default async function () {
|
|
|
|
return {
|
|
|
|
extends: ["presetter-preset-strict"],
|
|
|
|
template: {
|
2023-06-25 09:13:39 +00:00
|
|
|
".github/workflows/ci.yml": resolve(TEMPLATES, "ci.yml.raw"),
|
2023-06-25 09:00:59 +00:00
|
|
|
".releaserc.json": resolve(TEMPLATES, ".releaserc.json"),
|
2023-06-25 02:18:23 +00:00
|
|
|
},
|
2023-06-25 08:29:32 +00:00
|
|
|
noSymlinks: [".github/workflows/ci.yml"],
|
2023-06-25 02:18:23 +00:00
|
|
|
variable: DEFAULT_VARIABLE,
|
|
|
|
supplementaryConfig: {
|
|
|
|
prettier: {
|
|
|
|
singleQuote: false,
|
|
|
|
},
|
2023-06-25 08:54:43 +00:00
|
|
|
tsconfig: {
|
|
|
|
compilerOptions: {
|
2023-06-25 09:20:13 +00:00
|
|
|
lib: ["ES2021", "dom"],
|
2023-06-25 08:54:43 +00:00
|
|
|
},
|
|
|
|
},
|
2023-06-25 02:18:23 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|
2023-06-25 09:20:13 +00:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDN0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUl6Qyx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