Skip to content

Commit

Permalink
Remove legacy/experimental APIs (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza authored Nov 18, 2024
1 parent 5b72a18 commit 4c70e8f
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 132 deletions.
2 changes: 0 additions & 2 deletions apps/typegpu-docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ export default defineConfig({
'typegpu/dist/index.d.ts?raw': '../../packages/typegpu/dist/index.d.ts',
'typegpu/dist/data/index.d.ts?raw':
'../../packages/typegpu/dist/data/index.d.ts',
'typegpu/dist/macro/index.d.ts?raw':
'../../packages/typegpu/dist/macro/index.d.ts',
'typegpu/dist/experimental/index.d.ts?raw':
'../../packages/typegpu/dist/experimental/index.d.ts',
'@typegpu/jit/dist/index.d.ts?raw':
Expand Down
1 change: 0 additions & 1 deletion apps/typegpu-docs/src/components/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ function handleEditorWillMount(monaco: Monaco) {
typegpu: ['typegpu/dist/index.d.ts'],
'typegpu/experimental': ['typegpu/dist/experimental/index.d.ts'],
'typegpu/data': ['typegpu/dist/data/index.d.ts'],
'typegpu/macro': ['typegpu/dist/macro/index.d.ts'],
'@typegpu/jit': ['typegpu-jit.d.ts'],
},
});
Expand Down
12 changes: 0 additions & 12 deletions packages/typegpu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,11 @@
"import": "./dist/data/index.js",
"default": "./dist/data/index.cjs"
},
"./macro": {
"types": "./dist/macro/index.d.ts",
"module": "./dist/macro/index.js",
"import": "./dist/macro/index.js",
"default": "./dist/macro/index.cjs"
},
"./experimental": {
"types": "./dist/experimental/index.d.ts",
"module": "./dist/experimental/index.js",
"import": "./dist/experimental/index.js",
"default": "./dist/experimental/index.cjs"
},
"./smol": {
"types": "./dist/smol/index.d.ts",
"module": "./dist/smol/index.js",
"import": "./dist/smol/index.js",
"default": "./dist/smol/index.cjs"
}
},
"sideEffects": false,
Expand Down
5 changes: 0 additions & 5 deletions packages/typegpu/src/macro/index.ts

This file was deleted.

45 changes: 0 additions & 45 deletions packages/typegpu/src/macro/repeat.ts

This file was deleted.

62 changes: 0 additions & 62 deletions packages/typegpu/tests/macro.test.ts

This file was deleted.

6 changes: 1 addition & 5 deletions packages/typegpu/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ const { inDevMode, featureSet } = initBuildScript();

const entry = ['src/index.ts', 'src/data/index.ts'];
if (featureSet === 'experimental') {
entry.push(
'src/experimental/index.ts',
'src/macro/index.ts',
'src/smol/index.ts',
);
entry.push('src/experimental/index.ts');
}

// TODO: Consider stripping `invariant()` calls of their messages for a smaller bundle size.
Expand Down

0 comments on commit 4c70e8f

Please sign in to comment.