-
Notifications
You must be signed in to change notification settings - Fork 23
feat: migrate to Vite x-types and x-archetype-utils packages #1949
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
Merged
victorcg88
merged 9 commits into
main
from
feature/migrate-to-vite-x-types-and-x-archetype-utils-packages
Feb 4, 2026
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
dce18be
feat: migrate to Vite x-types and x-archetype-utils packages
lauramargar 30169fa
chore: fix pnpm-lock file
lauramargar 5fa901a
chore: fix x-types build
lauramargar a77c3ed
chore: fix pnpm-lock
lauramargar 727bbb8
fix: fix x-types-extractor "mainEntryPointFilePath"
lauramargar 9a1cbb0
fix: fix x-types package.json exports
lauramargar 7282235
fix: fix x-archetype-utils package.json exports
lauramargar 340aaca
fix: fix x-archetype-utils vite.config.mts format issues
lauramargar 9360cfc
fix: fix pnpm-lock file
lauramargar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| import { empathyco } from '@empathyco/eslint-config' | ||
|
|
||
| export default empathyco() | ||
| export default empathyco({ ignores: ['vite.config.mts'] }) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import { defineConfig } from 'vite' | ||
| import dts from 'vite-plugin-dts' | ||
| import * as path from 'path' | ||
| import pkg from './package.json' | ||
|
|
||
| export default defineConfig({ | ||
| build: { | ||
| lib: { | ||
| entry: path.resolve(__dirname, 'src/index.ts'), | ||
| name: 'XArchetypeUtils', | ||
| formats: ['es', 'cjs'], | ||
| fileName: format => `index.${format}.js`, | ||
| }, | ||
| rollupOptions: { | ||
| external: [ | ||
| ...Object.keys(pkg.dependencies ?? {}), | ||
| ...Object.keys(pkg.peerDependencies ?? {}), | ||
| ], | ||
| }, | ||
| sourcemap: true, | ||
| emptyOutDir: true, | ||
| }, | ||
| plugins: [ | ||
| dts({ | ||
| entryRoot: 'src', | ||
| outDir: 'dist', | ||
| }), | ||
| ], | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,11 @@ | ||
| import { empathyco } from '@empathyco/eslint-config' | ||
|
|
||
| export default empathyco({ | ||
| rules: { | ||
| 'ts/no-unsafe-assignment': 'off', | ||
| export default empathyco( | ||
| { ignores: ['vite.config.mts'] }, | ||
victorcg88 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {}, | ||
| { | ||
| rules: { | ||
| 'ts/no-unsafe-assignment': 'off', | ||
| }, | ||
| }, | ||
| }) | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| import { defineConfig } from 'vite' | ||
| import dts from 'vite-plugin-dts' | ||
| import * as path from 'path' | ||
|
|
||
| export default defineConfig({ | ||
| build: { | ||
| lib: { | ||
| entry: path.resolve(__dirname, 'src/index.ts'), | ||
| name: 'XTypes', | ||
| formats: ['es', 'cjs'], | ||
| fileName: format => `index.${format}.js`, | ||
| }, | ||
| rollupOptions: { | ||
| external: [], | ||
| }, | ||
| sourcemap: true, | ||
| emptyOutDir: true, | ||
| }, | ||
| plugins: [ | ||
| dts({ | ||
| entryRoot: 'src', | ||
| outDir: 'temp/types', | ||
| insertTypesEntry: true, | ||
| }), | ||
| ], | ||
| }) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.