UNPKG

4.75 kBJSONView Raw
1{
2 "name": "@builder.io/partytown",
3 "version": "0.10.1",
4 "description": "Relocate resource intensive third-party scripts off of the main thread and into a web worker.",
5 "license": "MIT",
6 "main": "index.cjs",
7 "module": "index.mjs",
8 "types": "index.d.ts",
9 "type": "module",
10 "engines": {
11 "node": ">=18.0.0"
12 },
13 "packageManager": "pnpm@8.12.1",
14 "exports": {
15 "./integration": {
16 "types": "./integration/index.d.ts",
17 "import": "./integration/index.mjs",
18 "require": "./integration/index.cjs"
19 },
20 "./integration/index.mjs": "./integration/index.mjs",
21 "./integration/index.cjs": "./integration/index.cjs",
22 "./react": {
23 "types": "./react/index.d.ts",
24 "import": "./react/index.mjs",
25 "require": "./react/index.cjs"
26 },
27 "./react/index.mjs": "./react/index.mjs",
28 "./react/index.cjs": "./react/index.cjs",
29 "./services/index.mjs": "./services/index.mjs",
30 "./services/index.cjs": "./services/index.cjs",
31 "./services": {
32 "types": "./services/index.d.ts",
33 "import": "./services/index.mjs",
34 "require": "./services/index.cjs"
35 },
36 "./utils": {
37 "types": "./utils/index.d.ts",
38 "import": "./utils/index.mjs",
39 "require": "./utils/index.cjs"
40 },
41 "./utils/index.mjs": "./utils/index.mjs",
42 "./utils/index.cjs": "./utils/index.cjs",
43 "./package.json": "./package.json",
44 ".": {
45 "types": "./index.d.ts",
46 "import": "./index.mjs",
47 "require": "./index.cjs"
48 }
49 },
50 "bin": "bin/partytown.cjs",
51 "files": [
52 "bin/partytown.cjs",
53 "index.cjs",
54 "index.mjs",
55 "index.d.ts",
56 "integration/",
57 "lib/",
58 "react/",
59 "services/",
60 "utils/"
61 ],
62 "scripts": {
63 "build": "tsc && rollup -c scripts/rollup.config.js",
64 "build.prod": "tsc && rollup -c scripts/rollup.config.js --configReleaseBuild",
65 "build.site": "npm run build && cd docs/site && npm i && npm run build && node ../../scripts/copy-site.cjs",
66 "build.watch": "rollup -c scripts/rollup.config.js -w --configDev",
67 "start": "npm run dev",
68 "dev": "tsc && concurrently \"npm:build.watch\" \"npm:tsc.watch\" -n build,tsc -c magenta,yellow",
69 "release": "npm run build && npm test && np --no-tests",
70 "serve": "node scripts/serve.cjs 4000",
71 "serve.test": "node scripts/serve.cjs 4001",
72 "serve.atomics": "node scripts/serve.cjs 4002 --atomics",
73 "serve.atomics.test": "node scripts/serve.cjs 4003 --atomics",
74 "test": "npm run test.unit && npm run test.chromium",
75 "test.atomics": "playwright test tests/integrations tests/platform --config playwright.atomics.config.ts --browser=chromium",
76 "test.chromium": "playwright test tests/integrations tests/platform --browser=chromium",
77 "test.webkit": "playwright test tests/integrations tests/platform --browser=webkit",
78 "test.firefox": "playwright test tests/integrations tests/platform --browser=firefox",
79 "test.nextjs.chromium": "cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=chromium",
80 "test.nextjs.webkit": "cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=webkit",
81 "test.nextjs.firefox": "cd tests/nextjs && npm i && playwright test --config playwright.nextjs.ts --browser=firefox",
82 "benchmark": "node tests/benchmarks/run.cjs",
83 "test.unit": "uvu -r tsm tests/unit",
84 "tsc.watch": "tsc -w",
85 "version": "npm run build.prod",
86 "fmt": "prettier --config package.json --write src scripts",
87 "fmt.check": "prettier --config package.json --check src scripts"
88 },
89 "devDependencies": {
90 "@microsoft/api-extractor": "^7.19.5",
91 "@playwright/test": "^1.17.1",
92 "@rollup/plugin-terser": "^0.4.3",
93 "@types/fs-extra": "^11.0.2",
94 "@types/node": "^18.17.15",
95 "@types/react": "^17.0.42",
96 "concurrently": "^7.0.0",
97 "domino": "^2.1.6",
98 "fs-extra": "^11.1.1",
99 "gzip-size": "^6.0.0",
100 "np": "^7.6.1",
101 "playwright": "^1.17.2",
102 "prettier": "^2.6.0",
103 "rollup": "^3.29.1",
104 "tslib": "^2.3.1",
105 "tsm": "^2.2.1",
106 "typescript": "^4.6.2",
107 "uvu": "^0.5.3"
108 },
109 "prettier": {
110 "trailingComma": "es5",
111 "tabWidth": 2,
112 "semi": true,
113 "singleQuote": true,
114 "printWidth": 100,
115 "useTabs": false,
116 "quoteProps": "consistent"
117 },
118 "author": "Builder.io Team",
119 "homepage": "https://github.com/BuilderIO/partytown#readme",
120 "repository": {
121 "type": "git",
122 "url": "git+https://github.com/BuilderIO/partytown.git"
123 },
124 "keywords": [
125 "web worker",
126 "3rd-party",
127 "third-party",
128 "analytics",
129 "webapp",
130 "performance",
131 "lighthouse",
132 "core web vitals",
133 "react"
134 ],
135 "publishConfig": {
136 "access": "public"
137 }
138}