Skip to content

Commit 49c7bd9

Browse files
authored
fix(tinyest-for-wgsl): Fix exports, bump tinyest-for-wgsl 0.3.2, unplugin-typegpu 0.10.2, tinyest 0.3.1 (#2270)
1 parent 607d1c3 commit 49c7bd9

8 files changed

Lines changed: 37 additions & 26 deletions

File tree

packages/tinyest-for-wgsl/package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tinyest-for-wgsl",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"private": true,
55
"description": "Transforms JavaScript into its 'tinyest' form, to be used in generating equivalent (or close to) WGSL code.",
66
"keywords": [
@@ -32,10 +32,14 @@
3232
"exports": {
3333
"./package.json": "./package.json",
3434
".": {
35-
"types": "./dist/index.d.ts",
36-
"module": "./dist/index.js",
37-
"import": "./dist/index.js",
38-
"default": "./dist/index.cjs"
35+
"require": {
36+
"types": "./dist/index.d.cts",
37+
"default": "./dist/index.cjs"
38+
},
39+
"import": {
40+
"types": "./dist/index.d.ts",
41+
"default": "./dist/index.js"
42+
}
3943
}
4044
},
4145
"linkDirectory": false,
@@ -48,7 +52,7 @@
4852
"prepublishOnly": "tgpu-dev-cli prepack"
4953
},
5054
"dependencies": {
51-
"tinyest": "workspace:~0.3.0"
55+
"tinyest": "workspace:~0.3.1"
5256
},
5357
"devDependencies": {
5458
"@babel/parser": "^7.27.0",

packages/tinyest-for-wgsl/tsdown.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default defineConfig({
44
entry: ['src/index.ts'],
55
outDir: 'dist',
66
inlineOnly: false,
7-
format: 'esm',
7+
format: ['cjs', 'esm'],
88
dts: true,
99
platform: 'neutral',
1010
target: false,

packages/tinyest/package.json

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tinyest",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"private": true,
55
"description": "A compact, fast, and embeddable JavaScript AST for transpilation.",
66
"keywords": [
@@ -24,16 +24,24 @@
2424
"exports": {
2525
"./package.json": "./package.json",
2626
".": {
27-
"types": "./dist/index.d.ts",
28-
"module": "./dist/index.js",
29-
"import": "./dist/index.js",
30-
"default": "./dist/index.cjs"
27+
"require": {
28+
"types": "./dist/index.d.cts",
29+
"default": "./dist/index.cjs"
30+
},
31+
"import": {
32+
"types": "./dist/index.d.ts",
33+
"default": "./dist/index.js"
34+
}
3135
},
3236
"./*": {
33-
"types": "./dist/*.d.ts",
34-
"module": "./dist/*.js",
35-
"import": "./dist/*.js",
36-
"default": "./dist/*.cjs"
37+
"require": {
38+
"types": "./dist/*.d.cts",
39+
"default": "./dist/*.cjs"
40+
},
41+
"import": {
42+
"types": "./dist/*.d.ts",
43+
"default": "./dist/*.js"
44+
}
3745
}
3846
},
3947
"linkDirectory": false,

packages/tinyest/tsdown.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { defineConfig } from 'tsdown';
33
export default defineConfig({
44
entry: ['src/index.ts'],
55
outDir: 'dist',
6-
format: 'esm',
6+
format: ['cjs', 'esm'],
77
dts: true,
88
platform: 'neutral',
99
target: false,

packages/typegpu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"prepublishOnly": "tgpu-dev-cli prepack"
8282
},
8383
"dependencies": {
84-
"tinyest": "workspace:~0.3.0",
84+
"tinyest": "workspace:~0.3.1",
8585
"tsover-runtime": "^0.0.5",
8686
"typed-binary": "^4.3.1"
8787
},

packages/unplugin-typegpu/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unplugin-typegpu",
3-
"version": "0.10.1",
3+
"version": "0.10.2",
44
"description": "Build plugins for TypeGPU, enabling seamless JavaScript -> WGSL transpilation and improved debugging.",
55
"keywords": [
66
"babel-plugin",
@@ -171,8 +171,8 @@
171171
"magic-string-ast": "^1.0.0",
172172
"pathe": "^2.0.3",
173173
"picomatch": "^4.0.3",
174-
"tinyest": "workspace:~0.3.0",
175-
"tinyest-for-wgsl": "workspace:~0.3.1",
174+
"tinyest": "workspace:~0.3.1",
175+
"tinyest-for-wgsl": "workspace:~0.3.2",
176176
"unplugin": "^2.3.5"
177177
},
178178
"devDependencies": {

packages/unplugin-typegpu/tsdown.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export default defineConfig({
2222
tsconfig: './tsconfig.json',
2323
target: 'es2017',
2424
platform: 'node',
25-
unbundle: true,
2625
sourcemap: false,
2726
dts: true,
2827
});

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)