Skip to content

Commit

Permalink
Fixed prepack, updated tinyest's README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza committed Nov 21, 2024
1 parent dcc9558 commit 959f36b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/tgpu-dev-cli/prepack.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function transformPackageJSON() {

// Erroring out on any wildcard dependencies
for (const [moduleKey, versionSpec] of [
...entries(distPackageJson.dependencies),
...entries(distPackageJson.dependencies ?? {}),
]) {
if (versionSpec === '*' || versionSpec === 'workspace:*') {
throw new Error(
Expand All @@ -94,7 +94,7 @@ async function transformPackageJSON() {
distPackageJson.devDependencies = undefined;
// Removing workspace specifiers in dependencies.
distPackageJson.dependencies = mapValues(
distPackageJson.dependencies,
distPackageJson.dependencies ?? {},
(/** @type {string} */ value) => value.replace(/^workspace:/, ''),
);

Expand All @@ -119,7 +119,7 @@ async function transformReadme() {

async function main() {
await promiseExec(
'pnpm build && pnpm -w test:spec && pnpm test:types && biome check .',
'pnpm build && pnpm -w test:spec && pnpm -w test:types && biome check .',
);

await Promise.all([transformPackageJSON(), transformReadme()]);
Expand Down
22 changes: 22 additions & 0 deletions packages/tinyest/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<div align="center">

# tinyest

Tiny Embeddable Syntax Tree - [GitHub](https://github.com/software-mansion/TypeGPU/tree/main/packages/tinyest)

</div>



**WIP: Under Construction**

A compact, fast, and embeddable JavaScript AST for transpilation.

### Projects using tinyest
- [TypeGPU](https://typegpu.com) - A TypeScript library that enhances the WebGPU API, allowing resource management in a type-safe way.

## tinyest is created by Software Mansion

[![swm](https://logo.swmansion.com/logo?color=white&variant=desktop&width=150&tag=typegpu-github 'Software Mansion')](https://swmansion.com)

Since 2012 [Software Mansion](https://swmansion.com) is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – [Hire us](https://swmansion.com/contact/projects?utm_source=tinyest&utm_medium=readme).

0 comments on commit 959f36b

Please sign in to comment.