create-kvitton 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1074,7 +1074,9 @@ async function syncChartOfAccounts(client2, repoPath) {
|
|
|
1074
1074
|
var __filename2 = fileURLToPath(import.meta.url);
|
|
1075
1075
|
var __dirname2 = path5.dirname(__filename2);
|
|
1076
1076
|
async function createAgentsFile(targetDir, options) {
|
|
1077
|
-
const
|
|
1077
|
+
const bundledPath = path5.join(__dirname2, "templates/AGENTS.md");
|
|
1078
|
+
const devPath = path5.join(__dirname2, "../templates/AGENTS.md");
|
|
1079
|
+
const templatePath = await fs5.access(bundledPath).then(() => bundledPath).catch(() => devPath);
|
|
1078
1080
|
let template = await fs5.readFile(templatePath, "utf-8");
|
|
1079
1081
|
template = template.replace(/\{\{COMPANY_NAME\}\}/g, options.companyName);
|
|
1080
1082
|
template = template.replace(/\{\{PROVIDER\}\}/g, options.provider);
|