codetrap 0.1.0 → 0.1.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/bin/codetrap +4 -0
- package/docs/installation.md +4 -4
- package/package.json +4 -3
- package/src/index.ts +0 -0
package/bin/codetrap
ADDED
package/docs/installation.md
CHANGED
|
@@ -72,11 +72,11 @@ Release binaries are built by `.github/workflows/release.yml` when a version tag
|
|
|
72
72
|
3. Create and push a matching tag:
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
|
-
git tag v0.1.
|
|
76
|
-
git push origin v0.1.
|
|
75
|
+
git tag v0.1.1
|
|
76
|
+
git push origin v0.1.1
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
The release tag must match `package.json` exactly. For example, package version `0.1.
|
|
79
|
+
The release tag must match `package.json` exactly. For example, package version `0.1.1` must use tag `v0.1.1`.
|
|
80
80
|
|
|
81
81
|
The workflow runs:
|
|
82
82
|
|
|
@@ -192,7 +192,7 @@ npm pack --dry-run
|
|
|
192
192
|
npm publish --access public
|
|
193
193
|
```
|
|
194
194
|
|
|
195
|
-
The package is source-based: the npm package installs the `codetrap` command from `
|
|
195
|
+
The package is source-based: the npm package installs the `codetrap` command from `bin/codetrap`, so users still need Bun installed.
|
|
196
196
|
|
|
197
197
|
You can preview the npm package locally:
|
|
198
198
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codetrap",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Capture and retrieve coding pitfalls so AI doesn't repeat mistakes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"bun": ">=1.0.0"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
|
+
"bin",
|
|
27
28
|
"src/commands",
|
|
28
29
|
"src/db",
|
|
29
30
|
"src/domain",
|
|
@@ -39,11 +40,11 @@
|
|
|
39
40
|
"LICENSE"
|
|
40
41
|
],
|
|
41
42
|
"bin": {
|
|
42
|
-
"codetrap": "
|
|
43
|
+
"codetrap": "bin/codetrap"
|
|
43
44
|
},
|
|
44
45
|
"scripts": {
|
|
45
46
|
"dev": "bun run src/index.ts",
|
|
46
|
-
"install:cli": "ln -sf \"$PWD/
|
|
47
|
+
"install:cli": "ln -sf \"$PWD/bin/codetrap\" \"$(bun pm bin -g)/codetrap\"",
|
|
47
48
|
"build:release": "bun run scripts/build-release.ts",
|
|
48
49
|
"check:release-version": "bun run scripts/check-release-version.ts",
|
|
49
50
|
"build": "bun build ./src/index.ts --compile --outfile dist/codetrap && bun build ./src/mcp-server.ts --compile --outfile dist/codetrap-serve",
|
package/src/index.ts
CHANGED
|
File without changes
|