bundle with parcel

This commit is contained in:
Elijah R 2025-01-10 14:39:55 -05:00
parent 45ee7f4091
commit 3490e458ec
2 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View file

@ -23,6 +23,7 @@ js/node_modules/
js/src/gen/ js/src/gen/
js/dist/ js/dist/
js/package.tgz js/package.tgz
js/.parcel-cache/
js/.yarn/* js/.yarn/*
js/!.yarn/patches js/!.yarn/patches
js/!.yarn/plugins js/!.yarn/plugins

View file

@ -8,19 +8,26 @@
}, },
"license": "MIT", "license": "MIT",
"main": "./dist/index.js", "main": "./dist/index.js",
"source": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"type": "module", "type": "module",
"scripts": { "scripts": {
"build-buf": "buf generate", "build-buf": "buf generate",
"build": "tsc", "build": "parcel build",
"prepack": "yarn build-buf && yarn build" "prepack": "yarn build-buf && yarn build"
}, },
"devDependencies": { "devDependencies": {
"@bufbuild/buf": "^1.49.0", "@bufbuild/buf": "^1.49.0",
"@bufbuild/protoc-gen-es": "^2.2.3", "@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" "typescript": "^5.7.3"
}, },
"dependencies": { "dependencies": {
"@bufbuild/protobuf": "^2.2.3" "@bufbuild/protobuf": "^2.2.3"
},
"@parcel/resolver-default": {
"packageExports": true
} }
} }