11{
22 "name" : " string-offsets-dev" ,
3- "private" : true ,
43 "version" : " 0.1.0" ,
4+ "author" : " The blackbird team <support@github.com>" ,
5+ "license" : " MIT" ,
56 "description" : " String offset conversions between UTF-8, UTF-16, and lines" ,
6- "main" : " pkg/string_offsets_js.js" ,
7- "types" : " pkg/string_offsets_js.d.ts" ,
8- "files" : [
9- " ./pkg/string_offsets_js_bg.wasm" ,
10- " ./pkg/string_offsets_js.d.ts" ,
11- " ./pkg/string_offsets_js.js"
12- ],
13- "scripts" : {
14- "build" : " wasm-pack build --target nodejs --out-dir js/pkg" ,
15- "test" : " jest"
16- },
177 "keywords" : [
188 " string" ,
199 " utf8" ,
2010 " utf16" ,
2111 " wasm" ,
2212 " rust"
2313 ],
24- "author" : " " ,
25- "license" : " MIT" ,
14+ "main" : " pkg/nodejs/string_offsets.js" ,
15+ "types" : " pkg/nodejs/string_offsets.d.ts" ,
16+ "exports" : {
17+ "bundler" : " ./pkg/bundler/string_offsets.js" ,
18+ "node" : " ./pkg/nodejs/string_offsets.js" ,
19+ "import" : " ./pkg/web/string_offsets.js" ,
20+ "require" : " ./pkg/nodejs/string_offsets.js"
21+ },
22+ "scripts" : {
23+ "compile:bundler" : " wasm-pack build --target bundler -d js/pkg/bundler && node -e \" fs.unlinkSync('./pkg/bundler/.gitignore')\" " ,
24+ "compile:web" : " wasm-pack build --target web -d js/pkg/web && node -e \" fs.unlinkSync('./pkg/web/.gitignore')\" " ,
25+ "compile:nodejs" : " wasm-pack build --target nodejs -d js/pkg/nodejs && node -e \" fs.unlinkSync('./pkg/nodejs/.gitignore')\" " ,
26+ "compile" : " npm run compile:web && npm run compile:bundler && npm run compile:nodejs" ,
27+ "test" : " jest"
28+ },
2629 "devDependencies" : {
2730 "@types/jest" : " ^29.5.14" ,
2831 "jest" : " ^29.0.0" ,
2932 "wasm-pack" : " ^0.13.1"
3033 }
31- }
34+ }
0 commit comments