UNPKG

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