|
69 | 69 | "license": "LGPL-2.1",
|
70 | 70 | "browser": "./lib/p5.min.js",
|
71 | 71 | "exports": {
|
72 |
| - ".": "./dist/app.js", |
73 |
| - "./core": "./dist/core/main.js", |
74 |
| - "./shape": "./dist/shape/index.js", |
75 |
| - "./accessibility": "./dist/accessibility/index.js", |
76 |
| - "./friendlyErrors": "./dist/core/friendlyErrors/index.js", |
77 |
| - "./data": "./dist/data/index.js", |
78 |
| - "./dom": "./dist/dom/index.js", |
79 |
| - "./events": "./dist/events/index.js", |
80 |
| - "./image": "./dist/image/index.js", |
81 |
| - "./io": "./dist/io/index.js", |
82 |
| - "./math": "./dist/math/index.js", |
83 |
| - "./utilities": "./dist/utilities/index.js", |
84 |
| - "./webgl": "./dist/webgl/index.js", |
85 |
| - "./type": "./dist/type/index.js" |
| 72 | + ".": { |
| 73 | + "default": "./dist/app.js", |
| 74 | + "types": "./types/p5.d.ts" |
| 75 | + }, |
| 76 | + "./core": { |
| 77 | + "default": "./dist/core/main.js", |
| 78 | + "types": "./types/core/main.d.ts" |
| 79 | + }, |
| 80 | + "./shape": { |
| 81 | + "default": "./dist/shape/index.js", |
| 82 | + "types": "./types/shape/index.d.ts" |
| 83 | + }, |
| 84 | + "./accessibility": { |
| 85 | + "default": "./dist/accessibility/index.js", |
| 86 | + "types": "./types/accessibility/index.d.ts" |
| 87 | + }, |
| 88 | + "./friendly_errors": { |
| 89 | + "default": "./dist/core/friendly_errors/index.js", |
| 90 | + "types": "./types/core/friendly_errors/index.d.ts" |
| 91 | + }, |
| 92 | + "./data": { |
| 93 | + "default": "./dist/data/index.js", |
| 94 | + "types": "./types/data/index.d.ts" |
| 95 | + }, |
| 96 | + "./dom": { |
| 97 | + "default": "./dist/dom/index.js", |
| 98 | + "types": "./types/dom/index.d.ts" |
| 99 | + }, |
| 100 | + "./events": { |
| 101 | + "default": "./dist/events/index.js", |
| 102 | + "types": "./types/events/index.d.ts" |
| 103 | + }, |
| 104 | + "./image": { |
| 105 | + "default": "./dist/image/index.js", |
| 106 | + "types": "./types/image/index.d.ts" |
| 107 | + }, |
| 108 | + "./io": { |
| 109 | + "default": "./dist/io/index.js", |
| 110 | + "types": "./types/io/index.d.ts" |
| 111 | + }, |
| 112 | + "./math": { |
| 113 | + "default": "./dist/math/index.js", |
| 114 | + "types": "./types/math/index.d.ts" |
| 115 | + }, |
| 116 | + "./utilities": { |
| 117 | + "default": "./dist/utilities/index.js", |
| 118 | + "types": "./types/utilities/index.d.ts" |
| 119 | + }, |
| 120 | + "./webgl": { |
| 121 | + "default": "./dist/webgl/index.js", |
| 122 | + "types": "./types/webgl/index.d.ts" |
| 123 | + }, |
| 124 | + "./type": { |
| 125 | + "default": "./dist/type/index.js", |
| 126 | + "types": "./types/type/index.d.ts" |
| 127 | + } |
86 | 128 | },
|
87 | 129 | "files": [
|
88 | 130 | "dist/**",
|
|
111 | 153 | "workerDirectory": [
|
112 | 154 | "test"
|
113 | 155 | ]
|
114 |
| - }, |
115 |
| - "types": "./types/p5.d.ts" |
| 156 | + } |
116 | 157 | }
|
0 commit comments