Skip to content

Commit

Permalink
fix package exports (#414)
Browse files Browse the repository at this point in the history
* fix package exports

* bump to beta.3
  • Loading branch information
kylebarron authored Apr 12, 2024
1 parent 2f06d31 commit cc8110b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 3 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parquet-wasm"
version = "0.6.0-beta.2"
version = "0.6.0-beta.3"
authors = ["Kyle Barron <[email protected]>"]
edition = "2021"
description = "WebAssembly Parquet reader and writer."
Expand Down Expand Up @@ -39,13 +39,7 @@ lz4 = ["parquet/lz4"]
all_compressions = ["brotli", "gzip", "snappy", "zstd", "lz4"]

# Full list of available features
full = [
"async",
"debug",
"all_compressions",
"reader",
"writer",
]
full = ["async", "debug", "all_compressions", "reader", "writer"]

[dependencies]
wasm-bindgen = { version = "0.2.88", features = ["serde-serialize"] }
Expand All @@ -70,10 +64,7 @@ thiserror = "1.0"
arrow-wasm = { git = "https://github.com/kylebarron/arrow-wasm", rev = "1d9bee7851d812f10a43a7376f01480375c2d8a2" }
# arrow-wasm = { path = "/Users/kyle/github/rust/arrow-wasm" }

arrow = { version = "50", default-features = false, features = [
"ipc",
"ffi",
] }
arrow = { version = "50", default-features = false, features = ["ipc", "ffi"] }
parquet = { version = "50", default-features = false, features = [
"arrow",
"base64",
Expand Down
27 changes: 16 additions & 11 deletions templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,25 @@
"arrow"
],
"exports": {
"./bundler": {
"types": "./bundler/parquet_wasm.d.ts",
"default": "./bundler/parquet_wasm.js"
},
"./esm": {
"types": "./esm/parquet_wasm.d.ts",
"default": "./esm/parquet_wasm.js"
},
"./node": {
"types": "./node/parquet_wasm.d.ts",
"default": "./node/parquet_wasm.js"
},
".": {
"import": {
"types": "./esm/parquet_wasm.d.ts",
"import": "./esm/parquet_wasm.js"
},
"browser": {
"types": "./esm/parquet_wasm.d.ts",
"import": "./esm/parquet_wasm.js"
},
"node": {
"types": "./node/parquet_wasm.d.ts",
"require": "./node/parquet_wasm.js",
"import": "./node/parquet_wasm.js"
}
"default": "./node/parquet_wasm.js"
},
"types": "./esm/parquet_wasm.d.ts",
"default": "./esm/parquet_wasm.js"
}
}
}

0 comments on commit cc8110b

Please sign in to comment.