Skip to content

Commit 9aa43b5

Browse files
committed
feat: remove postinstall
pnpm/pnpm#8897
1 parent f7d0055 commit 9aa43b5

File tree

6 files changed

+1
-352
lines changed

6 files changed

+1
-352
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ UHRP_CADDY_PATH=~/tmp/.uhrp
1414
```
1515

1616
```bash
17-
# not auto install caddy when postinstall
1817
npm i unplugin-https-reverse-proxy --save-dev
19-
20-
# auto install
21-
UHRP_AUTO_INSTALL_CADDY=true npm i unplugin-https-reverse-proxy --save-dev
2218
```
2319

2420
```ts

eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export default antfu({
77
ignores: [
88
'docs/**/*',
99
'examples/**/*',
10-
'scripts/postinstall.cjs',
1110
],
1211
},
1312
])

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,9 @@
7575
},
7676
"files": [
7777
"dist",
78-
"scripts/postinstall.cjs",
7978
"src"
8079
],
8180
"scripts": {
82-
"postinstall": "node scripts/postinstall.cjs",
8381
"build": "tsup",
8482
"dev": "tsup --watch src",
8583
"build:fix": "tsx scripts/postbuild.ts",

scripts/postinstall.cjs

Lines changed: 0 additions & 314 deletions
This file was deleted.

scripts/postinstall.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

tsup.config.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,5 @@ export default [
1212
dts: true,
1313
onSuccess: 'npm run build:fix',
1414
external: ['proper-lockfile'],
15-
},
16-
{
17-
entryPoints: [
18-
'scripts/postinstall.ts',
19-
],
20-
target: 'node16',
21-
platform: 'node',
22-
outDir: 'scripts',
23-
format: ['cjs'],
24-
onSuccess: 'npm run build:fix',
25-
external: ['proper-lockfile'],
26-
},
15+
}
2716
] satisfies Options[]

0 commit comments

Comments
 (0)