@danieldeusing/seedr 0.1.109 → 0.1.111

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/dist/cli.js +11 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -148,7 +148,7 @@ function isTelemetryDisabled(env = process.env) {
148
148
  return env[TELEMETRY_OPT_OUT_VARIABLE] !== void 0;
149
149
  }
150
150
  function cliVersion() {
151
- return true ? "0.1.109" : "dev";
151
+ return true ? "0.1.111" : "dev";
152
152
  }
153
153
  async function sendEvent(event) {
154
154
  try {
@@ -1220,7 +1220,7 @@ var settingsHandler = {
1220
1220
 
1221
1221
  // src/handlers/plugin.ts
1222
1222
  import { join as join5, relative as relative3 } from "path";
1223
- import { mkdir as mkdir3, mkdtemp as mkdtemp2, rm as rm2 } from "fs/promises";
1223
+ import { mkdir as mkdir3, mkdtemp as mkdtemp2, rm as rm2, stat } from "fs/promises";
1224
1224
  import chalk7 from "chalk";
1225
1225
  import ora6 from "ora";
1226
1226
 
@@ -1817,12 +1817,19 @@ async function createStagingDir(cacheRoot, slug) {
1817
1817
  }
1818
1818
  async function stageContent(item, contentPath) {
1819
1819
  const sourcePath = getItemSourcePath(item);
1820
- if (sourcePath) {
1820
+ if (sourcePath && await isDirectory(sourcePath)) {
1821
1821
  await copyDirectory(sourcePath, contentPath);
1822
1822
  return null;
1823
1823
  }
1824
1824
  return fetchItemToDestination(item, contentPath);
1825
1825
  }
1826
+ async function isDirectory(path) {
1827
+ try {
1828
+ return (await stat(path)).isDirectory();
1829
+ } catch {
1830
+ return false;
1831
+ }
1832
+ }
1826
1833
  function resolveGitCommitSha(item, fetched) {
1827
1834
  const sha = fetched?.sourceRevision ?? getEffectiveSourceRevision(item);
1828
1835
  if (sha) return sha;
@@ -2866,7 +2873,7 @@ var initCommand = new Command4("init").description("Initialize coding agent conf
2866
2873
  // package.json
2867
2874
  var package_default = {
2868
2875
  name: "@danieldeusing/seedr",
2869
- version: "0.1.109",
2876
+ version: "0.1.111",
2870
2877
  description: "Seed your projects with AI configurations",
2871
2878
  type: "module",
2872
2879
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danieldeusing/seedr",
3
- "version": "0.1.109",
3
+ "version": "0.1.111",
4
4
  "description": "Seed your projects with AI configurations",
5
5
  "type": "module",
6
6
  "bin": {