Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

feat/migrate-antd5-remove-style-import-codemo #516

Merged

Conversation

DmytroHryshyn
Copy link
Contributor

No description provided.

@DmytroHryshyn
Copy link
Contributor Author

DmytroHryshyn commented Dec 11, 2023

@@ -28,7 +48,8 @@
const options: Parameters<typeof esbuild.build>[0] = {
entryPoints: [relativeInputFilePath],
bundle: true,
packages: 'external',
// packages: 'external',
external: getExternal(packageJSON),
Copy link
Contributor

Choose a reason for hiding this comment

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

actually we might pass the external package names as the yargs options to the CJS builder OR
We actually remove both packages and external and allow esbuild to bundle the normal dependencies. We will have to move all dependencies to devDependencies

Copy link
Contributor Author

Choose a reason for hiding this comment

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

let do this one

We actually remove both packages and external and allow esbuild to bundle the normal dependencies. We will have to move all dependencies to devDependencies

@DmytroHryshyn DmytroHryshyn force-pushed the 12-11-feat/migrate-antd5-remove-style-import-codemo branch from c116fe8 to a71ba5f Compare December 11, 2023 14:51
@@ -6,6 +6,7 @@
"cjs-builder": "./dist/index.js"
},
"scripts": {
"build": "esbuild ./index.ts --bundle --platform=node --target=node16 --format=esm --outfile=./dist/index.js --external:esbuild",
Copy link
Contributor

Choose a reason for hiding this comment

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

why not tsc?

@@ -3,6 +3,9 @@ import esbuild from 'esbuild';
import { mkdir, readFile, writeFile } from 'node:fs/promises';
import { dirname, join } from 'node:path';

// list of packages that should be bundled to the codemod (e.g codemod internal utils)
const EXTERNAL_DEPENDENCIES = ['jscodeshift', 'ts-morph'];
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm what about @intuita-inc/filemod?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we only import types from it, so its fine

@DmytroHryshyn DmytroHryshyn merged commit dfce804 into main Dec 12, 2023
5 checks passed
@DmytroHryshyn DmytroHryshyn deleted the 12-11-feat/migrate-antd5-remove-style-import-codemo branch December 12, 2023 10:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants