Skip to content

Commit ca3576a

Browse files
committed
feat: prepack and postpack script
1 parent e3b00d9 commit ca3576a

File tree

7 files changed

+24
-22
lines changed

7 files changed

+24
-22
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
"test": "jest --runInBand",
4444
"test-cov": "jest --runInBand --coverage",
4545
"clean": "rm -rf dist && npm run build",
46-
"prepare": "husky"
46+
"prepare": "husky",
47+
"prepack": "node package-switch.js production",
48+
"postpack": "node package-switch.js local"
4749
},
4850
"workspaces": [
4951
"test/fixtures"

readme-copy.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const metadata = `
99
title: hexo-shortcodes demo
1010
date: 2023-03-03T00:48:02+07:00
1111
updated: ${currentDate}
12+
layout: page
1213
---
1314
`.trim();
1415

readme.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# hexo-shortcodes
22
Hexo shortcodes helper. Various shortcodes for hexo, adapted from jekyll. Various hexo shortcode tags.
33

4-
[GitHub](https://github.com/dimaslanjaka/hexo-shortcodes) |
5-
[Demo and docs](https://www.webmanajemen.com/docs/hexo-shortcodes/)
4+
[GitHub](https://github.com/dimaslanjaka/hexo-shortcodes) | [Demo and docs](https://www.webmanajemen.com/docs/hexo-shortcodes/)
65

76
## Installation
87

release/hexo-shortcodes.tgz

-163 Bytes
Binary file not shown.

release/metadata.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
},
1111
"/release/hexo-shortcodes.tgz": {
1212
"integrity": {
13-
"sha1": "c3876d20c045ed4eb6e6b58a0f1eb706208a63a1",
14-
"sha256": "d6B3cjKRBvJbUk08x/PqQ2FJXE4zhvnhPcjLY21za10=",
15-
"md5": "9e424e640d8eed9a9a6e34c50c4f0779",
16-
"sha512": "AuCacrgQCow0R8MDEyWKZJjZSOAWv3cjqlx5mQ7XqMTjGQehfMv2m/CG9Ho5kAsgyFs0Lg4V5W3aZR3Zbe0C0w=="
13+
"sha1": "8cf2e2cb5a73bf0e06dd736fd48cb5d72ab5d0e1",
14+
"sha256": "E39H03BubH8eVjGwTaDiOUJYQ6qquf/Ju5q76rzXLiw=",
15+
"md5": "d4b42412d4dbad762532af9939595563",
16+
"sha512": "e3/MAKf0pYIHbMABFa1j6mvcZz+YdPuhgDIXJcIe37qIJ4u1y9SXnpL226OYIhtwH06ozyHOizWcOFWDdVT9tg=="
1717
},
18-
"size": "21.20 KB"
18+
"size": "21.04 KB"
1919
},
2020
"/release/hexo-shortcodes-1.2.1.tgz": {
2121
"integrity": {
@@ -46,20 +46,20 @@
4646
},
4747
"/release/hexo-shortcodes-1.2.4.tgz": {
4848
"integrity": {
49-
"sha1": "c3876d20c045ed4eb6e6b58a0f1eb706208a63a1",
50-
"sha256": "d6B3cjKRBvJbUk08x/PqQ2FJXE4zhvnhPcjLY21za10=",
51-
"md5": "9e424e640d8eed9a9a6e34c50c4f0779",
52-
"sha512": "AuCacrgQCow0R8MDEyWKZJjZSOAWv3cjqlx5mQ7XqMTjGQehfMv2m/CG9Ho5kAsgyFs0Lg4V5W3aZR3Zbe0C0w=="
49+
"sha1": "8cf2e2cb5a73bf0e06dd736fd48cb5d72ab5d0e1",
50+
"sha256": "E39H03BubH8eVjGwTaDiOUJYQ6qquf/Ju5q76rzXLiw=",
51+
"md5": "d4b42412d4dbad762532af9939595563",
52+
"sha512": "e3/MAKf0pYIHbMABFa1j6mvcZz+YdPuhgDIXJcIe37qIJ4u1y9SXnpL226OYIhtwH06ozyHOizWcOFWDdVT9tg=="
5353
},
54-
"size": "21.20 KB"
54+
"size": "21.04 KB"
5555
},
5656
"/yarn.lock": {
5757
"integrity": {
58-
"sha1": "3223669607b92b1f968a2194f5a5bc39b10eb1cc",
59-
"sha256": "bI8Pw2i6fdD51XJT6ms3eoK/bnkJ4ZXxvoF88ZKISjQ=",
60-
"md5": "79a7373c621747d5d101a6631c07ecb7",
61-
"sha512": "lBkB9gD+KSRs1CEkfEj8ZMdIHQHSzNvcNUqKB+ZIKSRVy23YcUIHyze7xKXJb/ScMXkBWIoFn3RQHzmxbtn4tw=="
58+
"sha1": "0b94f79e8cd197115080bdf7675cb9ff643b4f9c",
59+
"sha256": "l0+cSn5zHQhaM81U/Il2GqR7272aJMGH8mx9XDmMZMI=",
60+
"md5": "f5a3f79e9f78f86b9a45b3cc9c67203c",
61+
"sha512": "hltYKgvtiEphptUmSId89cDsAn5x4dFz/VdA5/uyt946qpAjQwMsc82YK2bEvRFU/VGq4fFS5l1GUHSRDxb0HA=="
6262
},
63-
"size": "460.26 KB"
63+
"size": "496.84 KB"
6464
}
6565
}

release/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Releases
33
| version | tarball url |
44
| :--- | :--- |
5-
| latest | https://github.com/dimaslanjaka/hexo-shortcodes/raw/e843e1a/release/hexo-shortcodes.tgz |
5+
| latest | https://github.com/dimaslanjaka/hexo-shortcodes/raw/91d0aaa/release/hexo-shortcodes.tgz |
66
| latest | https://github.com/dimaslanjaka/hexo-shortcodes/raw/pre-release/release/hexo-shortcodes.tgz |
77

88
use this tarball with `resolutions`:

test/fixtures/source/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: hexo-shortcodes demo
33
date: 2023-03-03T00:48:02+07:00
4-
updated: 2024-10-21T17:35:00+07:00
4+
updated: 2024-10-21T17:40:31+07:00
5+
layout: page
56
---
67

78
# hexo-shortcodes
89
Hexo shortcodes helper. Various shortcodes for hexo, adapted from jekyll. Various hexo shortcode tags.
910

10-
[GitHub](https://github.com/dimaslanjaka/hexo-shortcodes) |
11-
[Demo and docs](/docs/hexo-shortcodes/)
11+
[GitHub](https://github.com/dimaslanjaka/hexo-shortcodes) | [Demo and docs](/docs/hexo-shortcodes/)
1212

1313
## Installation
1414

0 commit comments

Comments
 (0)