UNPKG

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