Skip to content

Commit b754154

Browse files
authored
fix: Remove CJS output (#1890)
1 parent 1495a71 commit b754154

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

packages/tgpu-gen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"wgsl_reflect": "git://github.com/mhawryluk/wgsl_reflect.git#85994fdc8d8a3abbb4f79baf3891e54eed0c1c63"
1919
},
2020
"peerDependencies": {
21-
"typegpu": "workspace:^0.8.1"
21+
"typegpu": "workspace:^0.8.0"
2222
},
2323
"files": ["README.md", "LICENSE", "package.json", "**/*.mjs"],
2424
"devDependencies": {

packages/typegpu/package.json

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "typegpu",
33
"private": true,
4-
"version": "0.8.1",
4+
"version": "0.8.2",
55
"description": "A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.",
66
"license": "MIT",
77
"type": "module",
@@ -21,27 +21,19 @@
2121
"./package.json": "./dist/package.json",
2222
".": {
2323
"types": "./dist/index.d.ts",
24-
"module": "./dist/index.js",
25-
"import": "./dist/index.js",
26-
"default": "./dist/index.cjs"
24+
"default": "./dist/index.js"
2725
},
2826
"./data": {
2927
"types": "./dist/data/index.d.ts",
30-
"module": "./dist/data/index.js",
31-
"import": "./dist/data/index.js",
32-
"default": "./dist/data/index.cjs"
28+
"default": "./dist/data/index.js"
3329
},
3430
"./std": {
3531
"types": "./dist/std/index.d.ts",
36-
"module": "./dist/std/index.js",
37-
"import": "./dist/std/index.js",
38-
"default": "./dist/std/index.cjs"
32+
"default": "./dist/std/index.js"
3933
},
4034
"./common": {
4135
"types": "./dist/common/index.d.ts",
42-
"module": "./dist/common/index.js",
43-
"import": "./dist/common/index.js",
44-
"default": "./dist/common/index.cjs"
36+
"default": "./dist/common/index.js"
4537
}
4638
}
4739
},

packages/typegpu/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const entry = [
1414
export default defineConfig({
1515
entry,
1616
outDir: 'dist',
17-
format: ['cjs', 'esm'],
17+
format: ['esm'],
1818
target: 'es2024',
1919
splitting: true,
2020
sourcemap: true,

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)