starship-butler-utils 0.0.1-beta.7 → 0.0.1-beta.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/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as ansis from 'ansis';
2
2
 
3
3
  /**
4
- * Updates or creates a user rc file.
4
+ * Updates or creates a user rc file (rc file under home directory).
5
5
  * @param name The name of the rc file.
6
6
  * @param config The rc to write.
7
7
  */
8
- declare function updateOrCreateUserRc(name: string, config: any): void;
8
+ declare function upsertUserRc(name: string, config: any): void;
9
9
 
10
10
  /**
11
11
  * Check if a file or directory exists. Does not dereference symlinks.
@@ -83,4 +83,4 @@ declare const highlight: {
83
83
  reset: ansis.Ansis;
84
84
  };
85
85
 
86
- export { fs, highlight, updateOrCreateUserRc };
86
+ export { fs, highlight, upsertUserRc };
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import { dirname } from 'node:path';
4
4
  import consola from 'consola';
5
5
  import { reset, bold, magenta, cyan, red, green } from 'ansis';
6
6
 
7
- function updateOrCreateUserRc(name, config) {
7
+ function upsertUserRc(name, config) {
8
8
  const rc = readUser(name);
9
9
  if (!rc) {
10
10
  writeUser(config, name);
@@ -131,4 +131,4 @@ const fs = {
131
131
  removeSymlink: removeSymlink
132
132
  };
133
133
 
134
- export { fs, highlight, updateOrCreateUserRc };
134
+ export { fs, highlight, upsertUserRc };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "starship-butler-utils",
3
3
  "type": "module",
4
- "version": "0.0.1-beta.7",
4
+ "version": "0.0.1-beta.8",
5
5
  "description": "Your best starship butler.",
6
6
  "author": "Lumirelle <shabbyacc@outlook.com>",
7
7
  "license": "MIT",