Skip to content

Commit 3fd7541

Browse files
author
Richard P. Field III
committed
build: Package only the "dist" directory
This commit updates the npm configuration to inform SvelteKit to only package the "dist" directory. I've also added this output directory to all the tooling ignore files.
1 parent 6238998 commit 3fd7541

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node_modules
66
.env
77
.env.*
88
!.env.example
9+
/dist
910

1011
# Ignore files for PNPM, NPM and YARN
1112
pnpm-lock.yaml

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_modules
66
.env
77
.env.*
88
!.env.example
9+
/dist

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node_modules
66
.env
77
.env.*
88
!.env.example
9+
/dist
910

1011
# Ignore files for PNPM, NPM and YARN
1112
pnpm-lock.yaml

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,8 @@
5959
"types": "./dist/index.d.ts",
6060
"svelte": "./dist/index.js"
6161
}
62-
}
62+
},
63+
"files": [
64+
"dist"
65+
]
6366
}

0 commit comments

Comments
 (0)