@inizioevoke/astro-core 2.2.7 → 2.2.8
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/package.json
CHANGED
package/postinstall.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cpSync, readdirSync, rmSync } from 'fs';
|
|
2
2
|
import { join, dirname } from 'path';
|
|
3
3
|
import { fileURLToPath } from 'url';
|
|
4
4
|
|
|
@@ -6,12 +6,13 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
6
6
|
|
|
7
7
|
// Resolve the consuming project's root (three levels up from node_modules/@inizioevoke/astro-core)
|
|
8
8
|
const projectRoot = join(__dirname, '..', '..', '..');
|
|
9
|
-
const destDir = join(projectRoot, '.claude', 'skills'
|
|
10
|
-
const src = join(__dirname, 'agents', 'claude'
|
|
11
|
-
const dest = join(destDir, 'SKILL.md');
|
|
9
|
+
const destDir = join(projectRoot, '.claude', 'skills');
|
|
10
|
+
const src = join(__dirname, 'agents', 'claude');
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
const skillDirs = readdirSync(src);
|
|
13
|
+
for (const dir of skillDirs) {
|
|
14
|
+
const skillDestDir = join(destDir, dir);
|
|
15
|
+
rmSync(skillDestDir, { recursive: true, force: true });
|
|
16
|
+
cpSync(join(src, dir), skillDestDir, { recursive: true });
|
|
17
|
+
}
|
|
17
18
|
console.log(`[@inizioevoke/astro-core] Copied skill to ${dest}`);
|
|
File without changes
|