|
35 | 35 | "main": "dist/json.cjs", |
36 | 36 | "module": "dist/json.module.js", |
37 | 37 | "amdName": "OBSWebSocket", |
38 | | - "jsdelivr": "dist/obs-ws.min.cjs", |
39 | | - "unpkg": "dist/obs-ws.min.cjs", |
| 38 | + "jsdelivr": "dist/obs-ws.min.js", |
| 39 | + "unpkg": "dist/obs-ws.min.js", |
40 | 40 | "types": "dist/json.d.ts", |
41 | 41 | "engines": { |
42 | 42 | "node": ">12.0" |
|
50 | 50 | "build": "npm-run-all clean build:*", |
51 | 51 | "build:bundle": "microbundle -f modern,esm,cjs --no-compress src/{json,msgpack}.ts --generateTypes false", |
52 | 52 | "build:types": "tsc --emitDeclarationOnly", |
53 | | - "build:unpkg": "microbundle -f iife src/unpkg.ts -o dist/obs-ws.min.cjs --external none --generateTypes false", |
| 53 | + "build:unpkg": "node scripts/generate-unpkg.js", |
54 | 54 | "clean": "rimraf dist", |
55 | 55 | "dev": "npm run build:bundle --watch", |
56 | 56 | "generate:obs-types": "node --loader=ts-node/esm scripts/build-types.ts", |
57 | 57 | "lint": "eslint . --ext .cjs,.js,.ts", |
58 | | - "prepare": "npm run build", |
| 58 | + "prepack": "npm run build", |
59 | 59 | "report": "c8 report", |
60 | 60 | "test": "c8 ava", |
61 | 61 | "test:watch": "ava --watch" |
|
0 commit comments