- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 611
 
feat(alias)!: ESM only. Update Node and Rollup minimum versions #1926
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
      
      
            shellscape
  merged 9 commits into
  master
from
ai-1925-charlie-esm-update-of-alias-package
  
      
      
   
  Oct 28, 2025 
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            9 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      26bb927
              
                feat(alias)!: ESM only; tsc-only build; Node >=20.19.0 and Rollup >=4…
              
              
                CharlieHelps 51f0c28
              
                chore(alias): address self-review feedback\n\n- Keep library maps out…
              
              
                CharlieHelps c49fe5c
              
                chore(alias): address review feedback\n\n- tests: close Rollup bundle…
              
              
                CharlieHelps febf50c
              
                merge: resolve conflicts in alias types/tests; adopt robust bundle cl…
              
              
                CharlieHelps 56d86f6
              
                chore(repo): use .mts for shared Vitest config; update alias test scr…
              
              
                CharlieHelps 1c479c1
              
                chore(alias): fix ci:test to use Vitest reporter instead of unsupport…
              
              
                CharlieHelps 21174de
              
                merge: pull master and refresh pnpm-lock.yaml via pnpm i
              
              
                CharlieHelps 2ec06b5
              
                chore(repo): use pnpm catalog for TypeScript and align alias (typescr…
              
              
                CharlieHelps c243716
              
                chore(repo): use pnpm catalog for TypeScript in root package.json
              
              
                CharlieHelps 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 | 
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "allowSyntheticDefaultImports": true, | ||
| "esModuleInterop": true, | ||
| "lib": ["ESNext"], | ||
| "module": "esnext", | ||
| "moduleResolution": "bundler", | ||
| "noEmit": true, | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "pretty": true, | ||
| "sourceMap": true, | ||
| "strict": true, | ||
| "target": "ES2022" | ||
| }, | ||
| "exclude": ["dist", "node_modules", "test/types"] | ||
| } | 
  
    
      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,13 @@ | ||
| { | ||
| // Important: this config is symlinked into package directories as `tsconfig.json`. | ||
| // The `extends` path must therefore be relative to the symlink location (e.g. packages/<pkg>/). | ||
| "extends": "../../.config/tsconfig.base.json", | ||
| "compilerOptions": { | ||
| "noEmit": false, | ||
| "outDir": "dist", | ||
| "rootDir": "src", | ||
| "declaration": true, | ||
| "declarationMap": true | ||
| }, | ||
| "include": ["src/**/*"] | ||
| } | 
  
    
      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,14 @@ | ||
| import { defineConfig } from 'vitest/config'; | ||
| import path from 'node:path'; | ||
| 
     | 
||
| export default defineConfig({ | ||
| test: { | ||
| // Store snapshots next to each test in a .snapshots folder | ||
| resolveSnapshotPath: (testPath, snapExt) => | ||
| path.join(path.dirname(testPath), '.snapshots', path.basename(testPath) + snapExt) | ||
| }, | ||
| resolve: { | ||
| // Allow importing the current package under test via `~package` | ||
| alias: [{ find: /^~package$/, replacement: path.resolve(process.cwd()) }] | ||
| } | ||
| }); | ||
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              
      
      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.