Skip to content

Commit 4c42151

Browse files
committed
Fixing ast transform for aliased imports
1 parent 0b3da7b commit 4c42151

File tree

532 files changed

+46197
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

532 files changed

+46197
-132
lines changed

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": true,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["docs"]
11+
}

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: [AlemTuzlak]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/copilot-instructions.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
applyTo: '**'
3+
---
4+
Provide project context and coding guidelines that AI should follow when generating code, answering questions, or reviewing changes.
5+
6+
Whenever you want to build the packages to test if they work you should run `pnpm run build` from the root of the repository.
7+
8+
If you want to run tests you can run `pnpm run test` from the root of the repository.
9+
10+
If you want to check if the examples work you need to go to `test-apps/<example-name>` and run `pnpm run dev`.
11+
12+
When writing code, please follow these guidelines:
13+
- Use TypeScript for all new code.
14+
- Ensure all new code is covered by tests.
15+
- Do not use `any` type; prefer specific types or generics.
16+
- Follow existing code style and conventions.
17+
18+
If you get an error "address already in use :::42069 you should kill the process using that port.
19+
20+
If we add a new functionality add a section about it in the `docs/content` folder explaining how to use it and update the `README.md` file to mention it.
21+
22+
Write tests for any new functionality.
23+
24+
When defining new types, first check if the types exist somewhere and re-use them, do not create new types that are similar to existing ones.
25+
26+
When modifying existing functionality, ensure backward compatibility unless there's a strong reason to introduce breaking changes. If breaking changes are necessary, document them clearly in the relevant documentation files.
27+
28+
If `pnpm run test` fails because of check, you can run `pnpm run check:fix` to fix the issues automatically.

.github/pull_request_template.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Description
2+
3+
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
4+
5+
Fixes # (issue)
6+
7+
If this is a new feature please add a description of what was added and why below:
8+
9+
## Type of change
10+
11+
Please delete options that are not relevant.
12+
13+
- [ ] Bug fix (non-breaking change which fixes an issue)
14+
- [ ] New feature (non-breaking change which adds functionality)
15+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
16+
- [ ] This change requires a documentation update
17+
18+
# How Has This Been Tested?
19+
20+
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
21+
22+
- [ ] Unit tests
23+
24+
# Checklist:
25+
26+
- [ ] My code follows the guidelines of this project
27+
- [ ] I have performed a self-review of my own code
28+
- [ ] I have commented my code, particularly in hard-to-understand areas
29+
- [ ] I have made corresponding changes to the documentation
30+
- [ ] My changes generate no new warnings or errors
31+
- [ ] I have added tests that prove my fix is effective or that my feature works
32+
- [ ] New and existing unit tests pass locally with my changes
33+
- [ ] Any dependent changes have been merged and published in downstream modules
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 🚀 pkg-pr-new
2+
on: [push, pull_request]
3+
4+
concurrency:
5+
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4
17+
18+
- run: corepack enable
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version-file: "package.json"
22+
23+
- name: Install dependencies
24+
run: pnpm install
25+
26+
- name: Build
27+
run: pnpm run build:all
28+
29+
- run: npx pkg-pr-new publish ./packages/*
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: 📚🚀 Build documentation on release
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch: {}
7+
8+
concurrency:
9+
group: docs-build-${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build-docs:
14+
name: Build Docs
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version-file: "package.json"
29+
cache: pnpm
30+
31+
- name: Install deps
32+
run: pnpm install --prefer-offline --frozen-lockfile
33+
34+
- name: Generate docs
35+
working-directory: docs
36+
env:
37+
APP_ENV: production
38+
run: pnpm run generate:docs
39+
40+
- name: Pack generated docs (tarball)
41+
run: |
42+
tar -czf docs-generated.tgz -C docs generated-docs
43+
ls -lh docs-generated.tgz
44+
45+
- name: Upload generated docs (tgz)
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: docs-generated-tgz
49+
path: docs-generated.tgz
50+
if-no-files-found: error
51+
52+
- name: Upload versions file
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: docs-versions
56+
path: docs/app/utils/versions.ts
57+
if-no-files-found: error
58+
59+
deploy-docs-on-release:
60+
needs: [build-docs]
61+
name: Deploy Docs
62+
environment:
63+
name: docs-release
64+
url: ${{ steps.deploy.outputs.app_url }}
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v4
68+
69+
- name: Download generated docs (tgz)
70+
uses: actions/download-artifact@v4
71+
with:
72+
name: docs-generated-tgz
73+
path: .
74+
75+
- name: Unpack generated docs into docs/
76+
run: |
77+
set -euxo pipefail
78+
tar -xzf docs-generated.tgz -C docs
79+
ls -laR docs/generated-docs | sed -n '1,200p'
80+
81+
- name: Download versions file
82+
uses: actions/download-artifact@v4
83+
with:
84+
name: docs-versions
85+
path: docs/app/utils
86+
87+
- uses: forge-42/fly-deploy@v1.0.0-rc.2
88+
id: deploy
89+
env:
90+
FLY_ORG: ${{ vars.FLY_ORG }}
91+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
92+
FLY_REGION: ${{ vars.FLY_REGION }}
93+
with:
94+
workspace_name: docs
95+
app_name: react-router-devtools-docs-release
96+
use_isolated_workspace: true
97+
env_vars: |
98+
APP_ENV=production
99+
GITHUB_OWNER=${{ github.repository_owner }}
100+
GITHUB_REPO=${{ github.event.repository.name }}
101+
GITHUB_REPO_URL=https://github.com/${{ github.repository }}

.github/workflows/publish.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
actions: write
16+
id-token: write
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@v3
20+
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version-file: "package.json"
28+
29+
- name: Install Dependencies
30+
run: pnpm install
31+
32+
# - name: 🔐 Setup npm auth
33+
# run: |
34+
# echo "registry=https://registry.npmjs.org" >> ~/.npmrc
35+
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
36+
37+
- name: Create Release Pull Request or Publish to npm
38+
id: changesets
39+
uses: changesets/action@v1
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43+
with:
44+
title: "🚀 Release PR"
45+
commit: "chore: release"
46+
version: pnpm run version
47+
publish: pnpm run release
48+
createGithubReleases: true

0 commit comments

Comments
 (0)