Skip to content

Commit 6a1cdef

Browse files
committed
chore: minor updates
1 parent 67fe1e7 commit 6a1cdef

File tree

7 files changed

+20
-38
lines changed

7 files changed

+20
-38
lines changed

package.json

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,40 +46,24 @@
4646
},
4747
"files": ["README.md", "dist"],
4848
"scripts": {
49-
"build": "bun build.ts && bun run compile",
50-
"compile": "bun build ./bin/cli.ts --compile --minify --outfile bin/tlsx",
51-
"compile:all": "bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:windows-x64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64",
52-
"compile:linux-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/tlsx-linux-x64",
53-
"compile:linux-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/tlsx-linux-arm64",
54-
"compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/tlsx-windows-x64.exe",
55-
"compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/tlsx-darwin-x64",
56-
"compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/tlsx-darwin-arm64",
5749
"lint": "bunx --bun eslint .",
5850
"lint:fix": "bunx --bun eslint . --fix",
5951
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
6052
"changelog": "bunx changelogen --output CHANGELOG.md",
61-
"prepublishOnly": "bun --bun run build && bun run compile:all && bun run zip",
6253
"release": "bun run changelog && bunx bumpp package.json --all",
6354
"test": "bun test",
6455
"typecheck": "bun --bun tsc --noEmit",
6556
"dev:docs": "bun --bun vitepress dev docs",
6657
"build:docs": "bun --bun vitepress build docs",
67-
"preview:docs": "bun --bun vitepress preview docs",
68-
"zip": "bun run zip:all",
69-
"zip:all": "bun run zip:linux-x64 && bun run zip:linux-arm64 && bun run zip:windows-x64 && bun run zip:darwin-x64 && bun run zip:darwin-arm64",
70-
"zip:linux-x64": "zip -j bin/tlsx-linux-x64.zip bin/tlsx-linux-x64",
71-
"zip:linux-arm64": "zip -j bin/tlsx-linux-arm64.zip bin/tlsx-linux-arm64",
72-
"zip:windows-x64": "zip -j bin/tlsx-windows-x64.zip bin/tlsx-windows-x64.exe",
73-
"zip:darwin-x64": "zip -j bin/tlsx-darwin-x64.zip bin/tlsx-darwin-x64",
74-
"zip:darwin-arm64": "zip -j bin/tlsx-darwin-arm64.zip bin/tlsx-darwin-arm64"
58+
"preview:docs": "bun --bun vitepress preview docs"
7559
},
7660
"devDependencies": {
7761
"@stacksjs/docs": "^0.70.23",
7862
"@stacksjs/eslint-config": "^4.10.2-beta.3",
79-
"@types/bun": "^1.2.12",
63+
"@types/bun": "^1.2.13",
8064
"@types/node-forge": "^1.3.11",
8165
"bun-plugin-dtsx": "^0.21.12",
82-
"bunfig": "^0.8.4",
66+
"bunfig": "^0.8.5",
8367
"cac": "^6.7.14",
8468
"node-forge": "^1.3.1",
8569
"picocolors": "^1.1.1",

packages/bun-plugin/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333
},
3434
"module": "./dist/src/index.js",
3535
"types": "./dist/index.d.ts",
36-
"bin": {
37-
"rpx": "./dist/bin/cli.js",
38-
"reverse-proxy": "./dist/bin/cli.js"
39-
},
4036
"files": [
4137
"README.md",
4238
"dist"
@@ -45,7 +41,6 @@
4541
"build": "bun build.ts",
4642
"lint": "bunx --bun eslint .",
4743
"lint:fix": "bunx --bun eslint . --fix",
48-
"changelog": "changelogen --output CHANGELOG.md",
4944
"prepublishOnly": "bun --bun run build",
5045
"test": "bun test",
5146
"typecheck": "bunx tsc --noEmit"

packages/bun-plugin/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"rootDir": "./src",
54
"outDir": "./dist"
65
},
76
"include": [

packages/tlsx/src/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export const defaultConfig: TlsConfig = {
2222
verbose: false,
2323
}
2424

25-
// @ts-expect-error dtsx issue leading to bad types
2625
// eslint-disable-next-line antfu/no-top-level-await
2726
export const config: TlsConfig = await loadConfig({
2827
name: 'tls',

packages/tlsx/tls.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ import os from 'node:os'
33
import path from 'node:path'
44

55
const config: TlsConfig = {
6-
domain: 'stacks.localhost',
7-
hostCertCN: 'stacks.localhost',
6+
domain: 'localhost',
7+
hostCertCN: 'localhost',
88
basePath: '',
9-
caCertPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.ca.crt`),
10-
certPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.crt`),
11-
keyPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.crt.key`),
9+
caCertPath: path.join(os.homedir(), '.tlsx', 'ssl', `localhost.ca.crt`),
10+
certPath: path.join(os.homedir(), '.tlsx', 'ssl', `localhost.crt`),
11+
keyPath: path.join(os.homedir(), '.tlsx', 'ssl', `localhost.key`),
1212
altNameIPs: ['127.0.0.1'],
1313
altNameURIs: ['localhost'],
1414
organizationName: 'stacksjs.org',
1515
countryName: 'US',
1616
stateName: 'California',
1717
localityName: 'Playa Vista',
18-
commonName: 'stacks.localhost',
18+
commonName: 'localhost',
1919
validityDays: 180,
2020
verbose: false,
2121
}

tls.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ import os from 'node:os'
33
import path from 'node:path'
44

55
const config: TlsConfig = {
6-
domain: 'stacks.localhost',
7-
hostCertCN: 'stacks.localhost',
6+
domain: 'localhost',
7+
hostCertCN: 'localhost',
88
basePath: '',
9-
caCertPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.ca.crt`),
10-
certPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.crt`),
11-
keyPath: path.join(os.homedir(), '.stacks', 'ssl', `stacks.localhost.crt.key`),
9+
caCertPath: path.join(os.homedir(), '.tlsx', 'ssl', `localhost.ca.crt`),
10+
certPath: path.join(os.homedir(), '.tlsx', 'ssl', `localhost.crt`),
11+
keyPath: path.join(os.homedir(), '.tlsx', 'ssl', `localhost.key`),
1212
altNameIPs: ['127.0.0.1'],
1313
altNameURIs: ['localhost'],
1414
organizationName: 'stacksjs.org',
1515
countryName: 'US',
1616
stateName: 'California',
1717
localityName: 'Playa Vista',
18-
commonName: 'stacks.localhost',
18+
commonName: 'localhost',
1919
validityDays: 180,
2020
verbose: false,
2121
}

tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"moduleDetection": "force",
66
"module": "esnext",
77
"moduleResolution": "bundler",
8+
"paths": {
9+
"@stacksjs/tlsx": ["./packages/tlsx/src"],
10+
"bun-plugin-tlsx": ["./packages/bun-plugin/src"],
11+
"vite-plugin-tlsx": ["./packages/vite-plugin/src"]
12+
},
813
"resolveJsonModule": true,
914
"allowImportingTsExtensions": true,
1015
"strict": true,

0 commit comments

Comments
 (0)