-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
62 lines (62 loc) · 2.68 KB
/
package.json
File metadata and controls
62 lines (62 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"name": "onedollarstats",
"version": "0.0.18",
"description": "A lightweight, zero-dependency analytics tracker for frontend apps",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"scripts": {
"build": "tsc -p tsconfig.build.json --emitDeclarationOnly && rm -rf dist/utils dist/script.d.ts dist/debug-modal.d.ts dist/globals.d.ts && esbuild src/index.ts --bundle --outfile=dist/index.js --platform=browser --format=esm --target=es2020 --sourcemap --define:DEBUG_SCRIPT_URL='\"https://assets.onedollarstats.com/stonks-debug.js\"'",
"bundle": "esbuild src/script.ts --bundle --minify --format=iife --outfile=build/stonks.js --define:DEBUG_SCRIPT_URL='\"https://assets.onedollarstats.com/stonks-debug.js\"'",
"bundle:dev": "esbuild src/script.ts --bundle --minify --format=iife --outfile=build/stonks.js --define:DEBUG_SCRIPT_URL='\"https://assets.onedollarstats.com/stonks-debug-dev.js\"'",
"bundle:test": "esbuild src/script.ts --bundle --format=cjs --outfile=build/stonks.js --define:DEBUG_SCRIPT_URL='\"https://assets.onedollarstats.com/stonks-debug.js\"'",
"bundle:debug": "esbuild src/debug-modal.ts --bundle --minify --format=iife --outfile=build/stonks-debug.js",
"test": "vitest run",
"test:units": "vitest run --project 'Unit Tests'",
"test:units:modal": "vitest run --project 'Unit Tests' src/utils/create-modal.test.ts",
"test:e2e:script": "vitest run --project 'Script E2E Tests'",
"test:e2e:package": "vitest run --project 'Package E2E Tests'",
"test:e2e": "vitest run --project 'Script E2E Tests' --project 'Package E2E Tests'",
"test:build&e2e:script": "pnpm bundle:test && FORCE_BUILD=1 COPY_TRACKER=1 vitest run --project 'Script E2E Tests'",
"test:build&e2e:package": "pnpm build && FORCE_BUILD=1 COPY_PACKAGE=1 vitest run --project 'Package E2E Tests'",
"test:all": "pnpm bundle:test && pnpm build && FORCE_BUILD=1 COPY_TRACKER=1 COPY_PACKAGE=1 vitest run",
"prepublishOnly": "pnpm build"
},
"files": [
"dist/index.js",
"dist/index.js.map",
"dist/index.d.ts",
"dist/types.d.ts"
],
"keywords": [
"analytics",
"tracking",
"lightweight",
"zero-dependency",
"javascript",
"typescript",
"events",
"onedollarstats"
],
"author": "",
"license": "MIT",
"packageManager": "pnpm@10.16.1",
"pnpm": {
"onlyBuiltDependencies": ["esbuild", "puppeteer"]
},
"devDependencies": {
"@types/jsdom": "^27.0.0",
"esbuild": "^0.25.10",
"jsdom": "^26.0.0",
"puppeteer": "^24.1.1",
"tsx": "^4.19.2",
"typescript": "^5.9.2",
"vitest": "^4.0.18"
}
}