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

build: fix package miss files #2786

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

HerrCai0907
Copy link
Member

No description provided.

@HerrCai0907 HerrCai0907 linked an issue Nov 9, 2023 that may be closed by this pull request
Copy link
Member

@CountBleck CountBleck left a comment

Choose a reason for hiding this comment

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

I'm surprised this is the issue. Is dist removed during some part of the publishing process?

.gitignore Outdated
Comment on lines 13 to 18
/dist/*.generated.d.ts
/dist/*.map
/dist/asc.js
/dist/assemblyscript.js
/dist/importmap.json
/dist/web.js
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/dist/*.generated.d.ts
/dist/*.map
/dist/asc.js
/dist/assemblyscript.js
/dist/importmap.json
/dist/web.js
dist/*.generated.d.ts
dist/*.map
dist/asc.js
dist/assemblyscript.js
dist/importmap.json
dist/web.js

Copy link
Member

@CountBleck CountBleck Nov 9, 2023

Choose a reason for hiding this comment

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

Also, please make sure my suggestion works after committing it. For all I know, the leading slash matters.

@HerrCai0907
Copy link
Member Author

I'm surprised this is the issue. Is dist removed during some part of the publishing process?

Yes, It is weird that gitignore in dist will influence npm package.

@CountBleck
Copy link
Member

It appears to be a peculiarity with the files option where .gitignore at the root has no effect on files but .gitignore in subdirectories does.

@HerrCai0907 HerrCai0907 merged commit 0412030 into AssemblyScript:main Nov 9, 2023
13 checks passed
@HerrCai0907 HerrCai0907 deleted the fix/publsih branch November 9, 2023 16:16
@JulianDM1995
Copy link

This breaks the npm package

@CountBleck
Copy link
Member

@JulianDM1995 This hasn't been published yet. In fact, this'll fix the npm package.

CountBleck added a commit to CountBleck/assemblyscript that referenced this pull request Nov 9, 2023
This allows AssemblyScript#2786 (which fixes the regression from AssemblyScript#2757) to be
published as soon as possible. Note that the main branch is the only
branch that can be published, since `ref: main` is passed to
actions/checkout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible regression after the latest release
3 participants