@kitschpatrol/snip 0.0.1 → 0.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.
Files changed (4) hide show
  1. package/dist/cli.js +22 -0
  2. package/package.json +26 -27
  3. package/readme.md +4 -4
  4. package/bin/cli.js +0 -128473
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/snip",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "description": "A CLI tool for snippet management.",
6
6
  "repository": {
@@ -25,59 +25,58 @@
25
25
  ],
26
26
  "license": "MIT",
27
27
  "engines": {
28
- "node": ">=18.0.0",
29
- "pnpm": ">=8.0.0"
28
+ "node": "^18.17.0 || >=20.5.0",
29
+ "pnpm": ">=9.0.0"
30
30
  },
31
31
  "bin": {
32
- "snip": "./bin/cli.js"
32
+ "snip": "./dist/cli.js"
33
33
  },
34
- "main": "./bin/cli.js",
35
34
  "files": [
36
- "bin/*"
35
+ "dist/*"
37
36
  ],
38
37
  "keywords": [
39
38
  "cli",
40
39
  "snippets",
41
- "vscode"
40
+ "vscode",
41
+ "npm-package"
42
42
  ],
43
43
  "dependencies": {
44
44
  "@commander-js/extra-typings": "^12.1.0",
45
+ "@types/fs-extra": "^11.0.4",
46
+ "@types/ignore-walk": "^4.0.3",
47
+ "@types/inquirer": "^9.0.7",
45
48
  "commander": "^12.1.0",
46
- "execa": "^9.1.0",
49
+ "execa": "^9.3.1",
47
50
  "fs-extra": "^11.2.0",
48
- "ignore-walk": "^6.0.5",
49
- "inquirer": "^9.2.22"
51
+ "ignore-walk": "^7.0.0",
52
+ "inquirer": "^10.2.2"
50
53
  },
51
54
  "devDependencies": {
52
- "@fig/complete-commander": "^3.0.0",
53
- "@kitschpatrol/shared-config": "^4.6.6",
54
- "@types/fs-extra": "^11.0.4",
55
- "@types/ignore-walk": "^4.0.3",
56
- "@types/inquirer": "^9.0.7",
57
- "@types/node": "^20.12.12",
58
- "bumpp": "^9.4.1",
55
+ "@kitschpatrol/shared-config": "^4.7.5",
56
+ "@types/node": "^20.16.5",
57
+ "bumpp": "^9.5.2",
59
58
  "chalk": "^5.3.0",
60
59
  "date-fns": "^3.6.0",
61
- "esbuild": "^0.21.4",
62
- "node-jq": "^4.4.0",
63
- "npm-run-all": "^4.1.5",
64
- "tslog": "^4.9.2",
65
- "tsx": "^4.11.0",
66
- "typescript": "^5.4.5",
67
- "vitest": "^1.6.0",
60
+ "node-jq": "^6.0.1",
61
+ "pkgroll": "^2.4.2",
62
+ "rimraf": "^6.0.1",
63
+ "tslog": "^4.9.3",
64
+ "tsx": "^4.19.0",
65
+ "typescript": "^5.5.4",
66
+ "vitest": "^2.0.5",
68
67
  "zod": "^3.23.8"
69
68
  },
70
69
  "publishConfig": {
71
70
  "access": "public"
72
71
  },
73
72
  "scripts": {
74
- "build": "tsx ./scripts/build-cli.ts",
75
- "fig:generate": "npm run build && NODE_ENV=development node bin/cli.js generate-fig-spec > /tmp/snip.ts && npx @fig/publish-spec -p /tmp/snip.ts && rm /tmp/snip.ts",
73
+ "build": "pkgroll --clean-dist --minify",
74
+ "clean": "rimraf ./pnpm-lock.yaml && git clean -fdX",
76
75
  "fix": "pnpm shared-config --fix",
77
76
  "lint": "pnpm shared-config --lint",
78
77
  "prebuild": "jq '{command: .bin | keys[], version, description}' package.json > ./src/generated/package-info.json",
79
78
  "release": "pnpm run build && pnpm bumpp --commit 'Release: %s' && pnpm publish --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
80
- "start": "node ./bin/cli.js",
79
+ "start": "node ./dist/cli.js",
81
80
  "test": "vitest",
82
81
  "update-language-data": "tsx ./scripts/update-vscode-language-data.ts"
83
82
  }
package/readme.md CHANGED
@@ -60,10 +60,10 @@ A CLI tool for snippet management.
60
60
  Options:
61
61
  -v, --version output the version number
62
62
  -c, --config <path> path to configuration file (default:
63
- "/Users/mika/.config/snip/config.json", env:
63
+ "~/.config/snip/config.json", env:
64
64
  SNIP_CONFIG_FILE)
65
65
  -l, --library <path> path to library directory where snippets are
66
- stored (default: "/Users/mika/.snip", env:
66
+ stored (default: "~/.snip", env:
67
67
  SNIP_LIBRARY_DIR)
68
68
  -d, --debug extra logging for troubleshooting (default:
69
69
  false, env: SNIP_DEBUG)
@@ -104,7 +104,7 @@ Modifications include:
104
104
 
105
105
  ## The future
106
106
 
107
- - [ ] Figure out what to do about [Fig integration](https://github.com/withfig/autocomplete-tools/blob/main/integrations/commander/README.md>).
107
+ - [ ] Explore Amazon Q (née Fig) auto-complete generation and integration
108
108
  - [ ] Additional editor adapters
109
109
  - [ ] Sync-from-editor migration fixes
110
110
  - [ ] Cosmiconfig
@@ -113,7 +113,7 @@ Modifications include:
113
113
 
114
114
  [@kitschpatrol](https://github.com/kitschpatrol)
115
115
 
116
- ## Acknowledgements
116
+ ## Acknowledgments
117
117
 
118
118
  [Jared Hanstra](https://github.com/jhanstra) is the author of the original [snipster](https://github.com/jhanstra/snipster) project on which Snip is based.
119
119