editor-profile-sync 1.0.0 → 1.0.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.
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  Cross-platform CLI to share your VS Code-based editor profile between editors.
4
4
 
5
5
  You can sync:
6
+
6
7
  - extensions
7
8
  - snippets
8
9
  - `settings.json`
@@ -15,33 +16,34 @@ You can sync:
15
16
 
16
17
  ## Install
17
18
 
18
- Clone this repo, then install dependencies:
19
+ ### Via npx (recommended)
20
+
21
+ Run directly without installing:
19
22
 
20
23
  ```bash
21
- npm install
24
+ npx editor-profile-sync
22
25
  ```
23
26
 
24
- ## Usage
27
+ ### Global install
25
28
 
26
- From the project folder:
29
+ Install once, then run from anywhere:
27
30
 
28
31
  ```bash
29
- npm start
32
+ npm install -g editor-profile-sync
33
+ editor-profile-sync
30
34
  ```
31
35
 
32
- or:
33
-
34
- ```bash
35
- node index.js
36
- ```
36
+ ### From source
37
37
 
38
- After linking (`npm link` in this folder), run from anywhere:
38
+ Clone this repo, then install dependencies:
39
39
 
40
40
  ```bash
41
- editor-profile-sync
41
+ npm install
42
42
  ```
43
43
 
44
- ### Options
44
+ ## Usage
45
+
46
+ ### CLI options
45
47
 
46
48
  | Option | Description |
47
49
  | ----------------- | ------------------- |
@@ -73,11 +75,12 @@ For `settings.json`, each target is merged as:
73
75
  ```js
74
76
  const merged = {
75
77
  ...targetSettings,
76
- ...sourceSettings
77
- }
78
+ ...sourceSettings,
79
+ };
78
80
  ```
79
81
 
80
82
  What this means:
83
+
81
84
  - Shared/source settings win on key conflicts.
82
85
  - Existing unrelated target settings stay.
83
86
  - Editor-specific keys are preserved unless your source uses the same key.
package/index.js CHANGED
@@ -5,6 +5,7 @@ import { dirname, join } from "path";
5
5
  import { fileURLToPath } from "url";
6
6
  import ora from "ora";
7
7
  import chalk from "chalk";
8
+ import updateNotifier from "update-notifier";
8
9
  import {
9
10
  EDITORS,
10
11
  EXTENSION_MODES,
@@ -33,6 +34,9 @@ const __filename = fileURLToPath(import.meta.url);
33
34
  const __dirname = dirname(__filename);
34
35
  const pkg = JSON.parse(readFileSync(join(__dirname, "package.json"), "utf-8"));
35
36
 
37
+ const notifier = updateNotifier({ pkg });
38
+ notifier.notify();
39
+
36
40
  async function main() {
37
41
  const args = process.argv.slice(2);
38
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editor-profile-sync",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Cross-platform extensions, settings.json, and snippets sync for VS Code-based editors",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -34,6 +34,7 @@
34
34
  "chalk": "^5.6.2",
35
35
  "inquirer": "^9.2.22",
36
36
  "jsonc-parser": "^3.3.1",
37
- "ora": "^9.3.0"
37
+ "ora": "^9.3.0",
38
+ "update-notifier": "^7.3.1"
38
39
  }
39
40
  }
Binary file