Skip to content

Commit 6191330

Browse files
committed
fix: change build output to build/ dir
1 parent 7a3f1fc commit 6191330

5 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
- name: Build
4646
run: pnpm run build
4747

48-
- name: List dist contents
49-
run: ls -lR dist
48+
- name: List build contents
49+
run: ls -lR build
5050

5151
# Optional: Add a test step here if you have tests
5252
# - name: Test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ bower_components
3737

3838
# Compiled binary addons (https://nodejs.org/api/addons.html)
3939
build/Release
40+
build/ # Ignore the build output directory
4041

4142
# Dependency directories
4243
node_modules/

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ tsconfig.json
3030
.vscode/
3131

3232
# Explicitly include the distribution directory
33-
!dist
33+
!build

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"license": "MIT",
88
"type": "module",
99
"bin": {
10-
"wt": "dist/index.js"
10+
"wt": "build/index.js"
1111
},
1212
"scripts": {
13-
"build": "tsc && cp package.json dist/package.json",
14-
"start": "node dist/index.js",
13+
"build": "tsc",
14+
"start": "node build/index.js",
1515
"dev": "tsc -w",
1616
"test": "vitest run",
1717
"semantic-release": "semantic-release"
@@ -41,16 +41,14 @@
4141
"plugins": [
4242
"@semantic-release/commit-analyzer",
4343
"@semantic-release/release-notes-generator",
44-
["@semantic-release/npm", {
45-
"pkgRoot": "dist"
46-
}],
44+
"@semantic-release/npm",
4745
"@semantic-release/github"
4846
]
4947
},
5048
"publishConfig": {
5149
"access": "public"
5250
},
5351
"files": [
54-
"dist"
52+
"build"
5553
]
5654
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"module": "Node16",
55
"moduleResolution": "node16",
66
"rootDir": "src",
7-
"outDir": "dist",
7+
"outDir": "build",
88
"strict": true,
99
"esModuleInterop": true,
1010
"resolveJsonModule": true,

0 commit comments

Comments
 (0)