agentic-dev 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/lib/scaffold.mjs +7 -1
  2. package/package.json +1 -1
package/lib/scaffold.mjs CHANGED
@@ -151,7 +151,13 @@ export function ensureTargetDir(targetDir, { force = false } = {}) {
151
151
  }
152
152
 
153
153
  function copyPath(relativePath, destinationRoot) {
154
- const sourcePath = path.join(PACKAGE_ROOT, relativePath);
154
+ let sourcePath = path.join(PACKAGE_ROOT, relativePath);
155
+ if (!fs.existsSync(sourcePath) && relativePath === ".gitignore") {
156
+ const npmIgnorePath = path.join(PACKAGE_ROOT, ".npmignore");
157
+ if (fs.existsSync(npmIgnorePath)) {
158
+ sourcePath = npmIgnorePath;
159
+ }
160
+ }
155
161
  const destinationPath = path.join(destinationRoot, relativePath);
156
162
  fs.mkdirSync(path.dirname(destinationPath), { recursive: true });
157
163
  fs.cpSync(sourcePath, destinationPath, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-dev",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Scaffold an agentic template repo with the selected frontend surface and shared toolchain assets.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.32.0",