|
76 | 76 | "url": "git+https://github.com/sandstone-mc/sandstone.git" |
77 | 77 | }, |
78 | 78 | "scripts": { |
79 | | - "build": "tsup --tsconfig tsconfig.build.json --onSuccess \"pnpm run setup\"", |
80 | | - "watch": "tsup --tsconfig tsconfig.build.json --onSuccess \"pnpm run setup\" --watch", |
81 | | - "build-types": "tsc --project tsconfig.build.json", |
82 | | - "setup-package": "node ./scripts/setupPackage.mjs", |
83 | | - "setup": "pnpm run build-types && pnpm run setup-package && echo ✔️ Successfully built Sandstone.", |
| 79 | + "build": "tsup --tsconfig tsconfig.json && echo ✔️ Successfully built Sandstone.", |
| 80 | + "watch": "tsup --tsconfig tsconfig.json --onSuccess \"echo ✔️ Successfully built Sandstone.\" --watch", |
84 | 81 | "publishToNpm": "pnpm run build && pnpm publish", |
85 | 82 | "format": "biome format --write src", |
86 | 83 | "lint": "biome lint src", |
87 | 84 | "check": "biome check --write src", |
88 | 85 | "test": "vitest", |
89 | 86 | "test:run": "vitest run" |
90 | 87 | }, |
91 | | - "type": "module", |
92 | | - "main": "index.js", |
93 | | - "module": "index.js", |
94 | | - "types": "index.d.ts", |
95 | | - "exports": { |
96 | | - ".": { |
97 | | - "types": "./dist/index.d.ts", |
98 | | - "import": "./dist/index.js", |
99 | | - "default": "./dist/index.js" |
100 | | - }, |
101 | | - "./*": { |
102 | | - "types": "./dist/*.d.ts", |
103 | | - "import": "./dist/*.js", |
104 | | - "default": "./dist/*.js" |
105 | | - }, |
106 | | - "./arguments": { |
107 | | - "types": "./dist/arguments/index.d.ts", |
108 | | - "import": "./dist/arguments/index.js", |
109 | | - "default": "./dist/arguments/index.js" |
110 | | - }, |
111 | | - "./arguments/generated": { |
112 | | - "types": "./dist/arguments/generated/index.d.ts", |
113 | | - "import": "./dist/arguments/generated/index.js", |
114 | | - "default": "./dist/arguments/generated/index.js" |
115 | | - }, |
116 | | - "./arguments/resources": { |
117 | | - "types": "./dist/arguments/resources/index.d.ts", |
118 | | - "import": "./dist/arguments/resources/index.js", |
119 | | - "default": "./dist/arguments/resources/index.js" |
120 | | - }, |
121 | | - "./arguments/resources/criteria": { |
122 | | - "types": "./dist/arguments/resources/criteria/index.d.ts", |
123 | | - "import": "./dist/arguments/resources/criteria/index.js", |
124 | | - "default": "./dist/arguments/resources/criteria/index.js" |
125 | | - }, |
126 | | - "./commands": { |
127 | | - "types": "./dist/commands/index.d.ts", |
128 | | - "import": "./dist/commands/index.js", |
129 | | - "default": "./dist/commands/index.js" |
130 | | - }, |
131 | | - "./commands/implementations": { |
132 | | - "types": "./dist/commands/implementations/index.d.ts", |
133 | | - "import": "./dist/commands/implementations/index.js", |
134 | | - "default": "./dist/commands/implementations/index.js" |
135 | | - }, |
136 | | - "./core": { |
137 | | - "types": "./dist/core/index.d.ts", |
138 | | - "import": "./dist/core/index.js", |
139 | | - "default": "./dist/core/index.js" |
140 | | - }, |
141 | | - "./core/resources": { |
142 | | - "types": "./dist/core/resources/index.d.ts", |
143 | | - "import": "./dist/core/resources/index.js", |
144 | | - "default": "./dist/core/resources/index.js" |
145 | | - }, |
146 | | - "./flow": { |
147 | | - "types": "./dist/flow/index.d.ts", |
148 | | - "import": "./dist/flow/index.js", |
149 | | - "default": "./dist/flow/index.js" |
150 | | - }, |
151 | | - "./flow/conditions": { |
152 | | - "types": "./dist/flow/conditions/index.d.ts", |
153 | | - "import": "./dist/flow/conditions/index.js", |
154 | | - "default": "./dist/flow/conditions/index.js" |
155 | | - }, |
156 | | - "./pack": { |
157 | | - "types": "./dist/pack/index.d.ts", |
158 | | - "import": "./dist/pack/index.js", |
159 | | - "default": "./dist/pack/index.js" |
160 | | - }, |
161 | | - "./pack/visitors": { |
162 | | - "types": "./dist/pack/visitors/index.d.ts", |
163 | | - "import": "./dist/pack/visitors/index.js", |
164 | | - "default": "./dist/pack/visitors/index.js" |
165 | | - }, |
166 | | - "./variables": { |
167 | | - "types": "./dist/variables/index.d.ts", |
168 | | - "import": "./dist/variables/index.js", |
169 | | - "default": "./dist/variables/index.js" |
170 | | - }, |
171 | | - "./variables/nbt": { |
172 | | - "types": "./dist/variables/nbt/index.d.ts", |
173 | | - "import": "./dist/variables/nbt/index.js", |
174 | | - "default": "./dist/variables/nbt/index.js" |
175 | | - } |
176 | | - } |
| 88 | + "main": "dist/index.cjs", |
| 89 | + "module": "dist/index.mjs", |
| 90 | + "types": "dist/index.d.ts" |
177 | 91 | } |
0 commit comments