@eunjae/dots 1.0.3 → 1.2.0
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/apply.impl-JW6DYGTX.js +40 -0
- package/dist/bin/bash-complete.js +1 -1
- package/dist/bin/cli.js +1 -1
- package/dist/chunk-2GAUT3J6.js +1 -0
- package/dist/chunk-7J6QUEEC.js +1 -0
- package/dist/{chunk-X22WBCAA.js → chunk-LZCOCCYT.js} +1 -1
- package/dist/config/index.d.ts +20 -5
- package/dist/config/index.js +1 -1
- package/dist/{init.impl-TXHQE6X3.js → init.impl-LYBVSK5K.js} +1 -1
- package/package.json +1 -1
- package/dist/apply.impl-27DRVKZK.js +0 -30
- package/dist/chunk-GPHKPMNY.js +0 -1
- package/dist/chunk-XHYWYFTY.js +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import{a as m,b as y}from"./chunk-2GAUT3J6.js";import{exec as H}from"node:child_process";import{promisify as L}from"node:util";import{lstat as h,mkdir as x,readlink as B,rm as I,symlink as v}from"node:fs/promises";import{homedir as D}from"node:os";import{dirname as M,resolve as w}from"node:path";function g(t,e){return t.startsWith("~/")?w(D(),t.slice(2)):t.startsWith("./")||!t.startsWith("/")?w(e,t):t}async function k(t){try{return await h(t),!0}catch{return!1}}async function E(t){try{return(await h(t)).isSymbolicLink()}catch{return!1}}async function F(t,e,o){let r=g(t.src,e),n=g(t.dest,e);if(!await k(r))return{action:"skipped",src:r,dest:n,error:`Source does not exist: ${r}`};if(await k(n)){if(await E(n)&&await B(n)===r)return{action:"exists",src:r,dest:n};if(!t.force)return{action:"skipped",src:r,dest:n,error:"Destination exists and is not the correct symlink. Use force: true to overwrite."};o||await I(n,{recursive:!0})}return o||(await x(M(n),{recursive:!0}),await v(r,n)),{action:"created",src:r,dest:n}}async function p(t,e,o){let r=[];for(let n of t){let s=await F(n,e,o);r.push(s)}return r}var u=L(H);function W(t){return typeof t=="string"?{name:t}:t}async function N(){try{return await u("which brew"),!0}catch{return!1}}async function T(t,e){try{let o=e?`brew list --cask ${t}`:`brew list ${t}`;return await u(o),!0}catch{return!1}}async function U(t,e){let o=e?`brew install --cask ${t}`:`brew install ${t}`;await u(o)}async function z(t){return await N()?!0:t?(console.log("[dry-run] Would install Homebrew"),!1):(console.log("Installing Homebrew..."),await u('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'),!0)}async function G(t,e,o){let r=W(t),{name:n,cask:s=!1,symlinks:i}=r;if(await T(n,s)){let l={action:"exists",name:n,cask:s};return i&&i.length>0&&(l.symlinkResults=await p(i,e,o)),l}if(!o)try{await U(n,s)}catch(l){return{action:"skipped",name:n,cask:s,error:`Failed to install: ${l instanceof Error?l.message:String(l)}`}}let a={action:"installed",name:n,cask:s};return i&&i.length>0&&(a.symlinkResults=await p(i,e,o)),a}async function $(t,e,o){if(!await z(o)&&!o)throw new Error("Homebrew is not installed and could not be installed");let n=[];for(let s of t){let i=await G(s,e,o);n.push(i)}return n}import{exec as j}from"node:child_process";import{promisify as q}from"node:util";var f=q(j);async function J(){try{return await f("which mas"),!0}catch{return!1}}async function K(){await f("brew install mas")}async function O(t){try{let{stdout:e}=await f("mas list");return e.includes(String(t))}catch{return!1}}async function Q(t){await f(`mas install ${t}`)}async function V(t,e){let o=typeof t=="number"?t:t.id,r=typeof t=="number"?void 0:t.name;if(await O(o))return{action:"exists",id:o,name:r};if(!e)try{await Q(o)}catch(n){return{action:"skipped",id:o,name:r,error:`Failed to install: ${n instanceof Error?n.message:String(n)}`}}return{action:"installed",id:o,name:r}}async function S(t,e){await J()||e||await K();let o=[];for(let r of t){let n=await V(r,e);o.push(n)}return o}import{exec as X}from"node:child_process";import{lstat as Y,mkdir as Z}from"node:fs/promises";import{homedir as _}from"node:os";import{resolve as d}from"node:path";import{promisify as tt}from"node:util";var R=tt(X);function b(t){return t.startsWith("~/")?d(_(),t.slice(2)):t}function et(t){let e=t.match(/\/([^/]+?)(?:\.git)?$/);if(e?.[1])return e[1];let o=t.match(/:([^/]+?)(?:\.git)?$/);if(o?.[1])return o[1];throw new Error(`Cannot extract repository name from URL: ${t}`)}async function rt(t){try{return await Y(t),!0}catch{return!1}}async function nt(t){try{return await R(`git -C "${t}" rev-parse --git-dir`),!0}catch{return!1}}async function ot(t,e,o){let{url:r}=t,n;if(t.dest)n=b(t.dest);else if(o){let s=et(r);n=b(d(o,s))}else return{action:"skipped",url:r,dest:"",error:"No destination specified and no workspacePath configured"};if(await rt(n))return await nt(n)?{action:"exists",url:r,dest:n}:{action:"skipped",url:r,dest:n,error:`Destination exists but is not a git repository: ${n}`};if(!e){let s=d(n,"..");await Z(s,{recursive:!0});try{await R(`git clone "${r}" "${n}"`)}catch(i){return{action:"skipped",url:r,dest:n,error:`Failed to clone: ${i instanceof Error?i.message:String(i)}`}}}return{action:"cloned",url:r,dest:n}}async function P(t,e,o){let r=[];for(let n of t){let s=await ot(n,e,o);r.push(s)}return r}import{exec as st}from"node:child_process";import{promisify as it}from"node:util";var C=it(st);async function at(t){try{return await C(t),!0}catch{return!1}}async function lt(t,e){let{name:o,command:r,unless:n}=t;if(n&&await at(n))return{action:"skipped",name:o,command:r};if(!e)try{await C(r)}catch(s){return{action:"skipped",name:o,command:r,error:`Failed to execute: ${s instanceof Error?s.message:String(s)}`}}return{action:"executed",name:o,command:r}}async function A(t,e){let o=[];for(let r of t){let n=await lt(r,e);o.push(n)}return o}async function ct(t,e){if(!t.repos||t.repos.length===0)return;e.proc.stdout.write(`\u{1F4E6} Repositories:
|
|
2
|
+
`);let o=await P(t.repos,e.dryRun,e.workspacePath);for(let r of o){let n=e.dryRun?"[dry-run] ":"";r.action==="cloned"?e.proc.stdout.write(` ${n}\u2713 Cloned ${r.url} \u2192 ${r.dest}
|
|
3
|
+
`):r.action==="exists"?e.proc.stdout.write(` ${n}\u2022 Already exists: ${r.dest}
|
|
4
|
+
`):r.action==="skipped"&&e.proc.stdout.write(` ${n}\u2717 Skipped: ${r.error}
|
|
5
|
+
`)}e.proc.stdout.write(`
|
|
6
|
+
`)}async function pt(t,e){if(!t.symlinks||t.symlinks.length===0)return;e.proc.stdout.write(`\u{1F517} Symlinks:
|
|
7
|
+
`);let o=await p(t.symlinks,e.configDir,e.dryRun);for(let r of o){let n=e.dryRun?"[dry-run] ":"";r.action==="created"?e.proc.stdout.write(` ${n}\u2713 Created ${r.dest} \u2192 ${r.src}
|
|
8
|
+
`):r.action==="exists"?e.proc.stdout.write(` ${n}\u2022 Already exists: ${r.dest}
|
|
9
|
+
`):r.action==="skipped"&&e.proc.stdout.write(` ${n}\u2717 Skipped: ${r.error}
|
|
10
|
+
`)}e.proc.stdout.write(`
|
|
11
|
+
`)}async function ut(t,e){let o=t.brew??[],r=(t.brewCask??[]).map(i=>({name:i,cask:!0})),n=[...o,...r];if(n.length===0)return;e.proc.stdout.write(`\u{1F37A} Homebrew packages:
|
|
12
|
+
`);let s=await $(n,e.configDir,e.dryRun);for(let i of s){let a=e.dryRun?"[dry-run] ":"",l=i.cask?"(cask)":"";if(i.action==="installed"?e.proc.stdout.write(` ${a}\u2713 Installed ${i.name} ${l}
|
|
13
|
+
`):i.action==="exists"?e.proc.stdout.write(` ${a}\u2022 Already installed: ${i.name} ${l}
|
|
14
|
+
`):i.action==="skipped"&&e.proc.stdout.write(` ${a}\u2717 Skipped ${i.name}: ${i.error}
|
|
15
|
+
`),i.symlinkResults)for(let c of i.symlinkResults)c.action==="created"?e.proc.stdout.write(` ${a}\u2713 Symlink: ${c.dest} \u2192 ${c.src}
|
|
16
|
+
`):c.action==="exists"?e.proc.stdout.write(` ${a}\u2022 Symlink exists: ${c.dest}
|
|
17
|
+
`):c.action==="skipped"&&e.proc.stdout.write(` ${a}\u2717 Symlink skipped: ${c.error}
|
|
18
|
+
`)}e.proc.stdout.write(`
|
|
19
|
+
`)}async function ft(t,e){if(!t.mas||t.mas.length===0)return;e.proc.stdout.write(`\u{1F34E} Mac App Store:
|
|
20
|
+
`);let o=await S(t.mas,e.dryRun);for(let r of o){let n=e.dryRun?"[dry-run] ":"",s=r.name?`${r.name} (${r.id})`:`${r.id}`;r.action==="installed"?e.proc.stdout.write(` ${n}\u2713 Installed: ${s}
|
|
21
|
+
`):r.action==="exists"?e.proc.stdout.write(` ${n}\u2022 Already installed: ${s}
|
|
22
|
+
`):r.action==="skipped"&&e.proc.stdout.write(` ${n}\u2717 Skipped ${s}: ${r.error}
|
|
23
|
+
`)}e.proc.stdout.write(`
|
|
24
|
+
`)}async function dt(t,e){if(!t.shell||t.shell.length===0)return;e.proc.stdout.write(`\u{1F41A} Shell commands:
|
|
25
|
+
`);let o=await A(t.shell,e.dryRun);for(let r of o){let n=e.dryRun?"[dry-run] ":"";r.action==="executed"?e.proc.stdout.write(` ${n}\u2713 Executed: ${r.name}
|
|
26
|
+
`):r.action==="skipped"&&(r.error?e.proc.stdout.write(` ${n}\u2717 Failed ${r.name}: ${r.error}
|
|
27
|
+
`):e.proc.stdout.write(` ${n}\u2022 Already done: ${r.name}
|
|
28
|
+
`))}e.proc.stdout.write(`
|
|
29
|
+
`)}async function mt(t,e){await ct(t,e),await pt(t,e),await ut(t,e),await ft(t,e),await dt(t,e)}async function zt(t){let{process:e}=this,o=t.dry,r=y();o?e.stdout.write(`
|
|
30
|
+
\u{1F50D} Dry run mode - no changes will be made
|
|
31
|
+
|
|
32
|
+
`):e.stdout.write(`
|
|
33
|
+
\u{1F680} Applying configuration...
|
|
34
|
+
|
|
35
|
+
`);let n=await m(r);if(!n){e.stderr.write(`Error: No config file found. Create dots.config.ts in the current directory.
|
|
36
|
+
`),e.exit(1);return}let s=n.find(a=>a.workspacePath)?.workspacePath,i={proc:e,configDir:r,dryRun:o,workspacePath:s};for(let a of n)await mt(a,i);o?e.stdout.write(`\u2705 Dry run complete. Run without --dry to apply changes.
|
|
37
|
+
|
|
38
|
+
`):e.stdout.write(`\u2705 Configuration applied successfully!
|
|
39
|
+
|
|
40
|
+
`)}export{zt as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as o,b as s}from"../chunk-
|
|
2
|
+
import{a as o,b as s}from"../chunk-LZCOCCYT.js";import"../chunk-7J6QUEEC.js";import{proposeCompletions as r}from"@stricli/core";var t=process.argv.slice(3);process.env.COMP_LINE?.endsWith(" ")&&t.push("");await r(o,t,s(process));try{for(let{completion:p}of await r(o,t,s(process)))process.stdout.write(`${p}
|
|
3
3
|
`)}catch{}
|
package/dist/bin/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as r,b as o}from"../chunk-
|
|
2
|
+
import{a as r,b as o}from"../chunk-LZCOCCYT.js";import"../chunk-7J6QUEEC.js";import{run as i}from"@stricli/core";await i(r,process.argv.slice(2),o(process));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{existsSync as e}from"node:fs";import{resolve as s}from"node:path";import{createJiti as f}from"jiti";var c=["dots.config.ts","dots.config.js"];async function g(i){let n=f(import.meta.url);for(let r of c){let t=s(i,r);if(!e(t))continue;let o=(await n.import(t)).default;return Array.isArray(o)?o:[o]}return null}function l(){return process.cwd()}export{g as a,l as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s="Declarative dotfiles and Mac setup manager";var i="1.2.0";export{s as a,i as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o,b as t}from"./chunk-
|
|
1
|
+
import{a as o,b as t}from"./chunk-7J6QUEEC.js";import{buildApplication as i,buildCommand as e,buildRouteMap as n}from"@stricli/core";var a=e({loader:async()=>import("./init.impl-LYBVSK5K.js"),parameters:{positional:{kind:"tuple",parameters:[{brief:"Git URL of the config repository (omit to create new project)",parse:String,placeholder:"repo-url",optional:!0}]},flags:{path:{kind:"parsed",brief:"Path for the dotfiles directory",parse:String,default:"~/.dots"}}},docs:{brief:"Initialize dots (clone existing repo or create new project)"}}),p=e({loader:async()=>import("./apply.impl-JW6DYGTX.js"),parameters:{flags:{dry:{kind:"boolean",brief:"Show what would be done without making changes",default:!1}}},docs:{brief:"Apply the configuration from the current directory"}}),s=n({routes:{init:a,apply:p},docs:{brief:o}}),u=i(s,{name:"dots",versionInfo:{currentVersion:t}});import c from"node:fs";import l from"node:os";import m from"node:path";function y(r){return{process:r,os:l,fs:c,path:m}}export{u as a,y as b};
|
package/dist/config/index.d.ts
CHANGED
|
@@ -11,16 +11,31 @@ interface BrewPackageConfig {
|
|
|
11
11
|
type BrewItem = string | BrewPackageConfig;
|
|
12
12
|
interface RepoConfig {
|
|
13
13
|
url: string;
|
|
14
|
-
dest
|
|
14
|
+
dest?: string;
|
|
15
|
+
}
|
|
16
|
+
interface ShellConfig {
|
|
17
|
+
name: string;
|
|
18
|
+
command: string;
|
|
19
|
+
unless?: string;
|
|
20
|
+
}
|
|
21
|
+
interface MasApp {
|
|
22
|
+
id: number;
|
|
23
|
+
name?: string;
|
|
15
24
|
}
|
|
16
|
-
|
|
25
|
+
type MasItem = number | MasApp;
|
|
26
|
+
interface DotsConfigStep {
|
|
27
|
+
workspacePath?: string;
|
|
17
28
|
repos?: RepoConfig[];
|
|
18
29
|
symlinks?: SymlinkConfig[];
|
|
19
30
|
brew?: BrewItem[];
|
|
31
|
+
brewCask?: string[];
|
|
32
|
+
mas?: MasItem[];
|
|
33
|
+
shell?: ShellConfig[];
|
|
20
34
|
}
|
|
21
|
-
|
|
35
|
+
type DotsConfig = DotsConfigStep | DotsConfigStep[];
|
|
36
|
+
declare function defineConfig(config: DotsConfig): DotsConfigStep[];
|
|
22
37
|
|
|
23
|
-
declare function loadConfig(dir: string): Promise<
|
|
38
|
+
declare function loadConfig(dir: string): Promise<DotsConfigStep[] | null>;
|
|
24
39
|
declare function findConfigDir(): string;
|
|
25
40
|
|
|
26
|
-
export { BrewItem, BrewPackageConfig, DotsConfig, RepoConfig, SymlinkConfig, defineConfig, findConfigDir, loadConfig };
|
|
41
|
+
export { BrewItem, BrewPackageConfig, DotsConfig, DotsConfigStep, MasApp, MasItem, RepoConfig, ShellConfig, SymlinkConfig, defineConfig, findConfigDir, loadConfig };
|
package/dist/config/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as n,b as o}from"../chunk-2GAUT3J6.js";function t(e){return Array.isArray(e)?e:[e]}export{t as defineConfig,o as findConfigDir,n as loadConfig};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as u}from"./chunk-
|
|
1
|
+
import{b as u}from"./chunk-7J6QUEEC.js";import{exec as m}from"node:child_process";import{lstat as f,mkdir as y,readFile as h,writeFile as a}from"node:fs/promises";import{homedir as d}from"node:os";import{resolve as s}from"node:path";import{promisify as b}from"node:util";var l=t=>`{
|
|
2
2
|
"name": "dotfiles",
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{a as p,b as d}from"./chunk-GPHKPMNY.js";import{exec as v}from"node:child_process";import{promisify as E}from"node:util";import{lstat as g,mkdir as R,readlink as h,rm as P,symlink as S}from"node:fs/promises";import{homedir as C}from"node:os";import{dirname as B,resolve as m}from"node:path";function w(t,e){return t.startsWith("~/")?m(C(),t.slice(2)):t.startsWith("./")||!t.startsWith("/")?m(e,t):t}async function y(t){try{return await g(t),!0}catch{return!1}}async function A(t){try{return(await g(t)).isSymbolicLink()}catch{return!1}}async function I(t,e,r){let n=w(t.src,e),s=w(t.dest,e);if(!await y(n))return{action:"skipped",src:n,dest:s,error:`Source does not exist: ${n}`};if(await y(s)){if(await A(s)&&await h(s)===n)return{action:"exists",src:n,dest:s};if(!t.force)return{action:"skipped",src:n,dest:s,error:"Destination exists and is not the correct symlink. Use force: true to overwrite."};r||await P(s,{recursive:!0})}return r||(await R(B(s),{recursive:!0}),await S(n,s)),{action:"created",src:n,dest:s}}async function u(t,e,r){let n=[];for(let s of t){let o=await I(s,e,r);n.push(o)}return n}var f=E(v);function D(t){return typeof t=="string"?{name:t}:t}async function H(){try{return await f("which brew"),!0}catch{return!1}}async function W(t,e){try{let r=e?`brew list --cask ${t}`:`brew list ${t}`;return await f(r),!0}catch{return!1}}async function F(t,e){let r=e?`brew install --cask ${t}`:`brew install ${t}`;await f(r)}async function L(t){return await H()?!0:t?(console.log("[dry-run] Would install Homebrew"),!1):(console.log("Installing Homebrew..."),await f('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'),!0)}async function T(t,e,r){let n=D(t),{name:s,cask:o=!1,symlinks:i}=n;if(await W(s,o)){let l={action:"exists",name:s,cask:o};return i&&i.length>0&&(l.symlinkResults=await u(i,e,r)),l}if(!r)try{await F(s,o)}catch(l){return{action:"skipped",name:s,cask:o,error:`Failed to install: ${l instanceof Error?l.message:String(l)}`}}let a={action:"installed",name:s,cask:o};return i&&i.length>0&&(a.symlinkResults=await u(i,e,r)),a}async function k(t,e,r){if(!await L(r)&&!r)throw new Error("Homebrew is not installed and could not be installed");let s=[];for(let o of t){let i=await T(o,e,r);s.push(i)}return s}import{exec as z}from"node:child_process";import{lstat as G,mkdir as N}from"node:fs/promises";import{homedir as U}from"node:os";import{resolve as $}from"node:path";import{promisify as j}from"node:util";var b=j(z);function q(t){return t.startsWith("~/")?$(U(),t.slice(2)):t}async function J(t){try{return await G(t),!0}catch{return!1}}async function K(t){try{return await b(`git -C "${t}" rev-parse --git-dir`),!0}catch{return!1}}async function M(t,e){let r=q(t.dest),{url:n}=t;if(await J(r))return await K(r)?{action:"exists",url:n,dest:r}:{action:"skipped",url:n,dest:r,error:`Destination exists but is not a git repository: ${r}`};if(!e){let s=$(r,"..");await N(s,{recursive:!0});try{await b(`git clone "${n}" "${r}"`)}catch(o){return{action:"skipped",url:n,dest:r,error:`Failed to clone: ${o instanceof Error?o.message:String(o)}`}}}return{action:"cloned",url:n,dest:r}}async function x(t,e){let r=[];for(let n of t){let s=await M(n,e);r.push(s)}return r}async function ft(t){let{process:e}=this,r=t.dry,n=d();r?e.stdout.write(`
|
|
2
|
-
\u{1F50D} Dry run mode - no changes will be made
|
|
3
|
-
|
|
4
|
-
`):e.stdout.write(`
|
|
5
|
-
\u{1F680} Applying configuration...
|
|
6
|
-
|
|
7
|
-
`);let s=await p(n);if(!s){e.stderr.write(`Error: No config file found. Create dots.config.ts in the current directory.
|
|
8
|
-
`),e.exit(1);return}if(s.repos&&s.repos.length>0){e.stdout.write(`\u{1F4E6} Repositories:
|
|
9
|
-
`);let o=await x(s.repos,r);for(let i of o){let a=r?"[dry-run] ":"";i.action==="cloned"?e.stdout.write(` ${a}\u2713 Cloned ${i.url} \u2192 ${i.dest}
|
|
10
|
-
`):i.action==="exists"?e.stdout.write(` ${a}\u2022 Already exists: ${i.dest}
|
|
11
|
-
`):i.action==="skipped"&&e.stdout.write(` ${a}\u2717 Skipped: ${i.error}
|
|
12
|
-
`)}e.stdout.write(`
|
|
13
|
-
`)}if(s.symlinks&&s.symlinks.length>0){e.stdout.write(`\u{1F517} Symlinks:
|
|
14
|
-
`);let o=await u(s.symlinks,n,r);for(let i of o){let a=r?"[dry-run] ":"";i.action==="created"?e.stdout.write(` ${a}\u2713 Created ${i.dest} \u2192 ${i.src}
|
|
15
|
-
`):i.action==="exists"?e.stdout.write(` ${a}\u2022 Already exists: ${i.dest}
|
|
16
|
-
`):i.action==="skipped"&&e.stdout.write(` ${a}\u2717 Skipped: ${i.error}
|
|
17
|
-
`)}e.stdout.write(`
|
|
18
|
-
`)}if(s.brew&&s.brew.length>0){e.stdout.write(`\u{1F37A} Homebrew packages:
|
|
19
|
-
`);let o=await k(s.brew,n,r);for(let i of o){let a=r?"[dry-run] ":"",l=i.cask?"(cask)":"";if(i.action==="installed"?e.stdout.write(` ${a}\u2713 Installed ${i.name} ${l}
|
|
20
|
-
`):i.action==="exists"?e.stdout.write(` ${a}\u2022 Already installed: ${i.name} ${l}
|
|
21
|
-
`):i.action==="skipped"&&e.stdout.write(` ${a}\u2717 Skipped ${i.name}: ${i.error}
|
|
22
|
-
`),i.symlinkResults)for(let c of i.symlinkResults)c.action==="created"?e.stdout.write(` ${a}\u2713 Symlink: ${c.dest} \u2192 ${c.src}
|
|
23
|
-
`):c.action==="exists"?e.stdout.write(` ${a}\u2022 Symlink exists: ${c.dest}
|
|
24
|
-
`):c.action==="skipped"&&e.stdout.write(` ${a}\u2717 Symlink skipped: ${c.error}
|
|
25
|
-
`)}e.stdout.write(`
|
|
26
|
-
`)}r?e.stdout.write(`\u2705 Dry run complete. Run without --dry to apply changes.
|
|
27
|
-
|
|
28
|
-
`):e.stdout.write(`\u2705 Configuration applied successfully!
|
|
29
|
-
|
|
30
|
-
`)}export{ft as default};
|
package/dist/chunk-GPHKPMNY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{existsSync as r}from"node:fs";import{resolve as s}from"node:path";import{createJiti as e}from"jiti";var f=["dots.config.ts","dots.config.js"];async function a(t){let i=e(import.meta.url);for(let n of f){let o=s(t,n);if(!r(o))continue;return(await i.import(o)).default}return null}function p(){return process.cwd()}export{a,p as b};
|
package/dist/chunk-XHYWYFTY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var s="Declarative dotfiles and Mac setup manager";var i="1.0.3";export{s as a,i as b};
|