editor-profile-sync 1.0.0 → 1.0.2

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
@@ -2,7 +2,10 @@
2
2
 
3
3
  Cross-platform CLI to share your VS Code-based editor profile between editors.
4
4
 
5
+ [GitHub](https://github.com/sbetav/editor-profile-sync) · [npm](https://www.npmjs.com/package/editor-profile-sync)
6
+
5
7
  You can sync:
8
+
6
9
  - extensions
7
10
  - snippets
8
11
  - `settings.json`
@@ -15,33 +18,34 @@ You can sync:
15
18
 
16
19
  ## Install
17
20
 
18
- Clone this repo, then install dependencies:
21
+ ### Via npx (recommended)
22
+
23
+ Run directly without installing:
19
24
 
20
25
  ```bash
21
- npm install
26
+ npx editor-profile-sync
22
27
  ```
23
28
 
24
- ## Usage
29
+ ### Global install
25
30
 
26
- From the project folder:
31
+ Install once, then run from anywhere:
27
32
 
28
33
  ```bash
29
- npm start
34
+ npm install -g editor-profile-sync
35
+ editor-profile-sync
30
36
  ```
31
37
 
32
- or:
38
+ ### From source
33
39
 
34
- ```bash
35
- node index.js
36
- ```
37
-
38
- After linking (`npm link` in this folder), run from anywhere:
40
+ Clone this repo, then install dependencies:
39
41
 
40
42
  ```bash
41
- editor-profile-sync
43
+ npm install
42
44
  ```
43
45
 
44
- ### Options
46
+ ## Usage
47
+
48
+ ### CLI options
45
49
 
46
50
  | Option | Description |
47
51
  | ----------------- | ------------------- |
@@ -73,11 +77,12 @@ For `settings.json`, each target is merged as:
73
77
  ```js
74
78
  const merged = {
75
79
  ...targetSettings,
76
- ...sourceSettings
77
- }
80
+ ...sourceSettings,
81
+ };
78
82
  ```
79
83
 
80
84
  What this means:
85
+
81
86
  - Shared/source settings win on key conflicts.
82
87
  - Existing unrelated target settings stay.
83
88
  - 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.2",
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",
@@ -27,6 +27,7 @@
27
27
  ],
28
28
  "author": "sbetav",
29
29
  "license": "MIT",
30
+ "repository": "github:sbetav/editor-profile-sync",
30
31
  "engines": {
31
32
  "node": ">=18"
32
33
  },
@@ -34,6 +35,7 @@
34
35
  "chalk": "^5.6.2",
35
36
  "inquirer": "^9.2.22",
36
37
  "jsonc-parser": "^3.3.1",
37
- "ora": "^9.3.0"
38
+ "ora": "^9.3.0",
39
+ "update-notifier": "^7.3.1"
38
40
  }
39
- }
41
+ }
Binary file