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: Bundle lib/core-server with ts-up #19278

Closed
wants to merge 7 commits into from
Closed

Conversation

ndelangen
Copy link
Member

related: #18732

@ndelangen ndelangen added the maintenance User-facing maintenance tasks label Sep 28, 2022
@ndelangen ndelangen self-assigned this Sep 28, 2022
Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1,5 +1,5 @@
import { dirname, join } from 'path';
import { copy, writeFile, remove } from 'fs-extra';
Copy link
Member

Choose a reason for hiding this comment

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

What's happening with all these changes @ndelangen? Does tsup not like named imports in some cases?

Copy link
Member Author

@ndelangen ndelangen Sep 29, 2022

Choose a reason for hiding this comment

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

I think what happening is that node now runs in actual ESM mode, or esbuild-register is mimicking that mode more accurately, and fs-extra isn't actually ESM.

@@ -1,6 +1,8 @@
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="./typings.d.ts" />

//
Copy link
Member

Choose a reason for hiding this comment

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

?

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 had a commit that was corrupt on CI 😖 I needed to commit something to kick it into action. Will remove.

Comment on lines +14 to +18
const defaultFavIcon = path.join(
path.dirname(require.resolve('@storybook/core-server/package.json')),
'public',
'favicon.ico'
);
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
const defaultFavIcon = path.join(
path.dirname(require.resolve('@storybook/core-server/package.json')),
'public',
'favicon.ico'
);
const defaultFavIcon = path.resolve(
require.resolve('@storybook/core-server/package.json'), './public/favicon.ico')

@ndelangen ndelangen marked this pull request as draft September 29, 2022 07:09
@ndelangen
Copy link
Member Author

Converted into draft, this seems to be a very pivotal package, not easy to convert. I might drop this for now, since I need to work on other stuff.

Base automatically changed from tech/tsup-core-client to next October 3, 2022 16:29
@IanVS IanVS added build Internal-facing build tooling & test updates and removed maintenance User-facing maintenance tasks labels Oct 13, 2022
@ndelangen ndelangen closed this Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Internal-facing build tooling & test updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants