Skip to content

Commit af42f49

Browse files
committed
Configure package files to publish
1 parent b188e8f commit af42f49

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,6 @@ dist
105105

106106
# Rust:
107107
/target
108-
Cargo.lock
108+
Cargo.lock
109+
/pkg
110+
/pkg.*/

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
{
22
"name": "brotli-wasm",
33
"version": "1.0.0",
4-
"description": "A reliable compressor and decompressor for Brotli, using wasm for node & browsers",
4+
"description": "A reliable compressor and decompressor for Brotli, supporting node & browsers via wasm",
55
"main": "./pkg.node/brotli_wasm.js",
66
"types": "./pkg.node/brotli_wasm.d.ts",
77
"browser": "./index.browser.js",
88
"sideEffects": false,
9+
"files": [
10+
"pkg.node",
11+
"pkg.bundler",
12+
"index.browser.js"
13+
],
914
"scripts": {
1015
"build": "node ./build.js",
1116
"pretest": "npm run build",

0 commit comments

Comments
 (0)