@choonkeat/md-serve 0.6.3 → 0.7.0
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 +10 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -123,7 +123,8 @@ md-serve -version
|
|
|
123
123
|
## Develop
|
|
124
124
|
|
|
125
125
|
```sh
|
|
126
|
-
make build # cross-compile all 6 platform binaries → npm-platforms
|
|
126
|
+
make build # cross-compile all 6 platform binaries → npm-platforms/, then link
|
|
127
|
+
make link # just the link step: put this checkout's md-serve on PATH
|
|
127
128
|
make test # go vet
|
|
128
129
|
make publish-dry # rehearse the npm publish
|
|
129
130
|
make publish # ship to npm
|
|
@@ -135,6 +136,14 @@ right `@choonkeat/md-serve-<platform>-<arch>` optionalDependency at
|
|
|
135
136
|
runtime, falling back to a locally built binary in `npm-platforms/`
|
|
136
137
|
during development.
|
|
137
138
|
|
|
139
|
+
That fallback is what makes `make build` enough to run your own changes:
|
|
140
|
+
`npm link` symlinks the shim onto your PATH, and the shim prefers
|
|
141
|
+
`npm-platforms/` over the published package, so `md-serve` means "this
|
|
142
|
+
working tree". `make build` prints the resolved path and version banner
|
|
143
|
+
so you can see which build you're about to run. One thing it can't
|
|
144
|
+
reach: `npx @choonkeat/md-serve` resolves from the npx cache and keeps
|
|
145
|
+
running the last *published* release regardless.
|
|
146
|
+
|
|
138
147
|
## License
|
|
139
148
|
|
|
140
149
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@choonkeat/md-serve",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Tiny static file server that renders Markdown as GitHub-styled HTML",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"optionalDependencies": {
|
|
22
|
-
"@choonkeat/md-serve-darwin-arm64": "0.
|
|
23
|
-
"@choonkeat/md-serve-darwin-x64": "0.
|
|
24
|
-
"@choonkeat/md-serve-linux-arm64": "0.
|
|
25
|
-
"@choonkeat/md-serve-linux-x64": "0.
|
|
26
|
-
"@choonkeat/md-serve-win32-arm64": "0.
|
|
27
|
-
"@choonkeat/md-serve-win32-x64": "0.
|
|
22
|
+
"@choonkeat/md-serve-darwin-arm64": "0.7.0",
|
|
23
|
+
"@choonkeat/md-serve-darwin-x64": "0.7.0",
|
|
24
|
+
"@choonkeat/md-serve-linux-arm64": "0.7.0",
|
|
25
|
+
"@choonkeat/md-serve-linux-x64": "0.7.0",
|
|
26
|
+
"@choonkeat/md-serve-win32-arm64": "0.7.0",
|
|
27
|
+
"@choonkeat/md-serve-win32-x64": "0.7.0"
|
|
28
28
|
}
|
|
29
29
|
}
|