28 lines
1.8 KiB
JavaScript
28 lines
1.8 KiB
JavaScript
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: {
|
|
".github/workflows/ci.yml": resolve(TEMPLATES, "ci.yml"),
|
|
},
|
|
noSymlinks: [".github/workflows/ci.yml"],
|
|
variable: DEFAULT_VARIABLE,
|
|
supplementaryConfig: {
|
|
prettier: {
|
|
singleQuote: false,
|
|
},
|
|
tsconfig: {
|
|
compilerOptions: {
|
|
lib: ["ES2021"],
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDN0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUl6QyxNQUFNLEdBQUcsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztBQUdwRCxNQUFNLFNBQVMsR0FBRyxPQUFPLENBQUMsR0FBRyxFQUFFLElBQUksRUFBRSxXQUFXLENBQUMsQ0FBQztBQUNsRCxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRztJQUM5QixNQUFNLEVBQUUsS0FBSztDQUNkLENBQUM7QUFNRixNQUFNLENBQUMsT0FBTyxDQUFDLEtBQUs7SUFDbEIsT0FBTztRQUNM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