Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: types not building correctly #10165

Merged
merged 4 commits into from
Feb 2, 2024
Merged

Fix: types not building correctly #10165

merged 4 commits into from
Feb 2, 2024

Conversation

Zyie
Copy link
Member

@Zyie Zyie commented Jan 30, 2024

For whatever reason when we build the types we get /// <reference types="dist" />
This is not what we want, we want /// <reference types="@webgpu/types" />
So i wrote a little script just to replace this out

Also we needed to copy over our Shader.d.ts file which defines frag,vert,wgsl files

@Zyie Zyie self-assigned this Jan 30, 2024
@Zyie Zyie added the v8 label Jan 30, 2024
Copy link

codesandbox-ci bot commented Jan 30, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b17786b:

Sandbox Source
pixi.js-sandbox Configuration

scripts/types/fixTypes.ts Outdated Show resolved Hide resolved
}

/**
* For whatever reason when we build the types we get /// <reference types="dist" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to know why this is happening. TS bug or are we implementing something incorrectly?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree! do we have any idea?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I currently have no idea what is causing this, but will add a ticket to look into it some more

Zyie and others added 2 commits January 30, 2024 12:38
Co-authored-by: Matt Karl <matt@mattkarl.com>
Copy link
Member

@GoodBoyDigital GoodBoyDigital left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Zyie Zyie merged commit 5ba9c27 into next-v8 Feb 2, 2024
4 checks passed
@Zyie Zyie deleted the fix/types branch February 2, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants