|
30 | 30 | "colorjs.io": "^0.5.2",
|
31 | 31 | "file-saver": "^1.3.8",
|
32 | 32 | "gifenc": "^1.0.3",
|
| 33 | + "i18next": "^19.0.2", |
| 34 | + "i18next-browser-languagedetector": "^4.0.1", |
33 | 35 | "libtess": "^1.2.2",
|
34 | 36 | "omggif": "^1.0.10",
|
35 |
| - "pako": "^2.1.0" |
| 37 | + "pako": "^2.1.0", |
| 38 | + "zod": "^3.23.8" |
36 | 39 | },
|
37 | 40 | "devDependencies": {
|
38 | 41 | "@rollup/plugin-alias": "^5.1.1",
|
|
48 | 51 | "documentation": "^14.0.3",
|
49 | 52 | "eslint": "^8.54.0",
|
50 | 53 | "husky": "^4.2.3",
|
51 |
| - "i18next": "^19.0.2", |
52 |
| - "i18next-browser-languagedetector": "^4.0.1", |
53 | 54 | "lint-staged": "^15.1.0",
|
54 | 55 | "msw": "^2.6.3",
|
55 | 56 | "rollup": "^4.9.6",
|
|
58 | 59 | "vite": "^5.0.2",
|
59 | 60 | "vite-plugin-string": "^1.2.2",
|
60 | 61 | "vitest": "^2.1.5",
|
61 |
| - "webdriverio": "^9.0.7", |
62 |
| - "zod": "^3.23.8" |
| 62 | + "webdriverio": "^9.0.7" |
63 | 63 | },
|
64 | 64 | "license": "LGPL-2.1",
|
65 |
| - "main": "./lib/p5.min.js", |
| 65 | + "browser": "./lib/p5.min.js", |
| 66 | + "exports": { |
| 67 | + "./": "./src/app.js", |
| 68 | + "./core": "./src/core/main.js", |
| 69 | + "./shape": "./src/shape/index.js", |
| 70 | + "./accessibility": "./src/accessibility/index.js", |
| 71 | + "./friendlyErrors": "./src/core/friendlyErrors/index.js", |
| 72 | + "./data": "./src/data/index.js", |
| 73 | + "./dom": "./src/dom/index.js", |
| 74 | + "./events": "./src/events/index.js", |
| 75 | + "./image": "./src/image/index.js", |
| 76 | + "./io": "./src/io/index.js", |
| 77 | + "./math": "./src/math/index.js", |
| 78 | + "./utilities": "./src/utilities/index.js", |
| 79 | + "./webgl": "./src/webgl/index.js", |
| 80 | + "./type": "./src/type/index.js" |
| 81 | + }, |
66 | 82 | "files": [
|
| 83 | + "src/**", |
67 | 84 | "license.txt",
|
68 | 85 | "lib/p5.min.js",
|
69 | 86 | "lib/p5.js",
|
70 |
| - "lib/addons/p5.sound.js", |
71 |
| - "lib/addons/p5.sound.min.js", |
| 87 | + "lib/p5.esm.js", |
72 | 88 | "translations/**"
|
73 | 89 | ],
|
74 | 90 | "description": "[](https://www.npmjs.com/package/p5)",
|
|
0 commit comments