From 3490e458eccd644b9bc16ee05abde304dc0cac91 Mon Sep 17 00:00:00 2001 From: Elijah R Date: Fri, 10 Jan 2025 14:39:55 -0500 Subject: [PATCH] bundle with parcel --- .gitignore | 1 + js/package.json | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f83b0d2..2a2f3c3 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ js/node_modules/ js/src/gen/ js/dist/ js/package.tgz +js/.parcel-cache/ js/.yarn/* js/!.yarn/patches js/!.yarn/plugins diff --git a/js/package.json b/js/package.json index f45c80f..dbcf5e3 100644 --- a/js/package.json +++ b/js/package.json @@ -8,19 +8,26 @@ }, "license": "MIT", "main": "./dist/index.js", + "source": "./src/index.ts", "types": "./dist/index.d.ts", "type": "module", "scripts": { "build-buf": "buf generate", - "build": "tsc", + "build": "parcel build", "prepack": "yarn build-buf && yarn build" }, "devDependencies": { "@bufbuild/buf": "^1.49.0", "@bufbuild/protoc-gen-es": "^2.2.3", + "@parcel/packager-ts": "2.13.3", + "@parcel/transformer-typescript-types": "2.13.3", + "parcel": "^2.13.3", "typescript": "^5.7.3" }, "dependencies": { "@bufbuild/protobuf": "^2.2.3" + }, + "@parcel/resolver-default": { + "packageExports": true } }