Add files setting for publishing the package

This commit is contained in:
Maximilian Ammann 2022-04-26 11:57:14 +02:00
parent 06718775ea
commit c2561aff18

View File

@ -1,5 +1,5 @@
{
"name": "maplibre_rs",
"name": "maplibre-rs",
"version": "0.0.1",
"description": "",
"scripts": {
@ -8,6 +8,9 @@
"esbuild": "npm run clean && npm run wasm-pack && WEBGL=false node build.mjs && tsc -m es2022 -outDir ./dist/esbuild --emitDeclarationOnly",
"esbuild-webgl": "npm run clean && FEATURES=web-webgl npm run wasm-pack && WEBGL=true node build.mjs && tsc -m es2022 -outDir ./dist/esbuild --emitDeclarationOnly"
},
"files": [
"dist/**/*"
],
"module": "dist/esbuild-esm/module.js",
"main": "dist/esbuild-cjs/main.js",
"types": "dist/esbuild/index.d.ts",