Skip to content

Commit 3ee2b1a

Browse files
committed
Tweak package.json and build setup
1 parent ecd0fe7 commit 3ee2b1a

File tree

4 files changed

+11
-31
lines changed

4 files changed

+11
-31
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Adapted from [original implementation](https://github.com/n8python/goodGodRays)
2020
Or import from unpkg as a module:
2121

2222
```ts
23-
import { GodraysPass } from 'https://unpkg.com/three-good-godrays@0.8.2/build/three-good-godrays.esm.js';
23+
import { GodraysPass } from 'https://unpkg.com/three-good-godrays@0.9.0/build/three-good-godrays.esm.js';
2424
```
2525

2626
## Supported Three.JS Version

esbuild.mjs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,6 @@ await esbuild
6565
})
6666
.catch(() => process.exit(1));
6767

68-
await esbuild
69-
.build({
70-
entryPoints: ['src/index.ts'],
71-
outfile: `build/${pkg.name}.mjs`,
72-
logLevel: 'info',
73-
format: 'esm',
74-
target: 'es2019',
75-
bundle: true,
76-
external,
77-
plugins,
78-
})
79-
.catch(() => process.exit(1));
80-
8168
// @todo Remove in next major release.
8269
const globalName = pkg.name.replace(/-/g, '').toUpperCase();
8370
// const requireShim = `if(typeof window==="object"&&!window.require)window.require=()=>window.THREE;`;

package-lock.json

Lines changed: 4 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
22
"name": "three-good-godrays",
3-
"version": "0.8.2",
3+
"version": "0.9.0",
44
"description": "Screen-space raymarched godrays for three.js using the pmndrs postprocessing library",
5+
"type": "module",
56
"main": "build/three-good-godrays.js",
67
"module": "build/three-good-godrays.esm.js",
8+
"types": "build/three-good-godrays.d.ts",
79
"exports": {
810
".": {
11+
"types": "./build/three-good-godrays.d.ts",
912
"import": "./build/three-good-godrays.esm.js",
10-
"require": "./build/three-good-godrays.js"
11-
},
12-
"./module": "./build/three-good-godrays.mjs"
13+
"default": "./build/three-good-godrays.js"
14+
}
1315
},
14-
"types": "build/three-good-godrays.d.ts",
1516
"sideEffects": false,
1617
"keywords": [
1718
"three",

0 commit comments

Comments
 (0)