diff --git a/.eslintignore b/.eslintignore index ced4b53392f30..40f0064d34df0 100644 --- a/.eslintignore +++ b/.eslintignore @@ -26,6 +26,6 @@ packages/create-next-app/templates/** test/integration/eslint/** test/development/basic/legacy-decorators/**/* test-timings.json -packages/next/build/swc/crates/** +packages/next-swc/crates/** bench/nested-deps/pages/** bench/nested-deps/components/** diff --git a/.github/actions/next-stats-action/src/index.js b/.github/actions/next-stats-action/src/index.js index 770cf6f5cb0cb..52b9fd32ab91f 100644 --- a/.github/actions/next-stats-action/src/index.js +++ b/.github/actions/next-stats-action/src/index.js @@ -118,6 +118,11 @@ if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) { // in case of noisy environment slowing down initial repo build await exec(buildCommand, false, { timeout: 5 * 60 * 1000 }) } + await fs.copy( + path.join(__dirname, '../native'), + path.join(dir, 'packages/next-swc/native') + ) + // TODO: remove after next stable release (current v12.0.4) await fs.copy( path.join(__dirname, '../native'), path.join(dir, 'packages/next/native') diff --git a/.github/actions/next-stats-action/src/prepare/repo-setup.js b/.github/actions/next-stats-action/src/prepare/repo-setup.js index aba3266fc7e5a..d06ce49d2dc1c 100644 --- a/.github/actions/next-stats-action/src/prepare/repo-setup.js +++ b/.github/actions/next-stats-action/src/prepare/repo-setup.js @@ -98,13 +98,24 @@ module.exports = (actionInfo) => { pkgData.dependencies[pkg] = packedPkgPath } // make sure native binaries are included in local linking - if (pkg === 'next') { + if (pkg === '@next/swc') { + if (!pkgData.files) { + pkgData.files = [] + } pkgData.files.push('native') console.log( 'using swc binaries: ', await exec(`ls ${path.join(path.dirname(pkgDataPath), 'native')}`) ) } + if (pkg === 'next') { + if (pkgDatas.get('@next/swc')) { + pkgData.dependencies['@next/swc'] = + pkgDatas.get('@next/swc').packedPkgPath + } else { + pkgData.files.push('native') + } + } await fs.writeFile( pkgDataPath, JSON.stringify(pkgData, null, 2), diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index fa1322ab8560d..800b741d3c9c5 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -127,7 +127,7 @@ jobs: if: ${{needs.build.outputs.docsChange != 'docs only change'}} with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native - run: node run-tests.js --type unit if: ${{needs.build.outputs.docsChange != 'docs only change'}} @@ -157,7 +157,7 @@ jobs: if: ${{needs.build.outputs.docsChange != 'docs only change'}} with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native - run: npm i -g playwright-chromium@1.14.1 && npx playwright install-deps if: ${{needs.build.outputs.docsChange != 'docs only change'}} @@ -209,7 +209,7 @@ jobs: if: ${{needs.build.outputs.docsChange != 'docs only change'}} with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native - run: npm i -g playwright-chromium@1.14.1 && npx playwright install-deps if: ${{needs.build.outputs.docsChange != 'docs only change'}} @@ -256,7 +256,7 @@ jobs: if: ${{needs.build.outputs.docsChange != 'docs only change'}} with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native - run: npm i -g playwright-chromium@1.14.1 && npx playwright install-deps if: ${{needs.build.outputs.docsChange != 'docs only change'}} @@ -298,7 +298,7 @@ jobs: if: ${{needs.build.outputs.docsChange != 'docs only change'}} with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native # TODO: remove after we fix watchpack watching too much - run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p @@ -328,7 +328,7 @@ jobs: if: ${{needs.build.outputs.docsChange != 'docs only change'}} with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native - run: bash ./scripts/test-pnp.sh if: ${{needs.build.outputs.docsChange != 'docs only change'}} @@ -369,7 +369,7 @@ jobs: if: ${{needs.build.outputs.docsChange != 'docs only change'}} with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native - run: npx playwright install-deps && npx playwright install firefox if: ${{needs.build.outputs.docsChange != 'docs only change'}} - run: node run-tests.js test/integration/production/test/index.test.js @@ -402,7 +402,7 @@ jobs: if: ${{needs.build.outputs.docsChange != 'docs only change'}} with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native # TODO: use macos runner so that we can use playwright to test against # PRs instead of only running on canary? @@ -440,7 +440,7 @@ jobs: if: ${{needs.build.outputs.docsChange != 'docs only change'}} with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native - run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || npm i -g browserstack-local@1.4.0' if: ${{needs.build.outputs.docsChange != 'docs only change'}} @@ -472,7 +472,7 @@ jobs: if: ${{needs.build.outputs.docsChange != 'docs only change'}} with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native - run: npx playwright install-deps && npx playwright install firefox if: ${{needs.build.outputs.docsChange != 'docs only change'}} - run: node run-tests.js test/integration/production/test/index.test.js @@ -509,12 +509,12 @@ jobs: - uses: actions/download-artifact@v2 with: name: next-swc-binaries - path: packages/next/build/swc/dist + path: packages/next-swc/native - uses: actions/download-artifact@v2 with: name: wasm-binaries - path: packages/next/build/swc/crates/wasm + path: packages/next-swc/crates/wasm - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - run: ./scripts/publish-native.js $GITHUB_REF @@ -534,9 +534,9 @@ jobs: - uses: actions/download-artifact@v2 with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native - - run: cp -r packages/next/native .github/actions/next-stats-action/native + - run: cp -r packages/next-swc/native .github/actions/next-stats-action/native - run: ./scripts/release-stats.sh - uses: ./.github/actions/next-stats-action @@ -591,8 +591,8 @@ jobs: uses: actions/cache@v2 if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} with: - path: packages/next/native/next-swc.linux-x64-gnu.node - key: dev-next-swc-nightly-2021-08-12-linux-x64-gnu-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }} + path: packages/next-swc/native/next-swc.linux-x64-gnu.node + key: dev-next-swc-nightly-2021-08-12-linux-x64-gnu-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next-swc/**') }} # We use restore-key to pick latest cache. # We will not get exact match, but doc says @@ -601,7 +601,7 @@ jobs: - name: Cache built files uses: actions/cache@v2 with: - path: ./packages/next/build/swc/target + path: ./packages/next-swc/target key: next-swc-cargo-cache-ubuntu-18.04--${{ hashFiles('**/Cargo.lock') }} restore-keys: | next-swc-cargo-cache-ubuntu-18.04 @@ -615,13 +615,13 @@ jobs: run: yarn build-native env: MACOSX_DEPLOYMENT_TARGET: '10.13' - working-directory: packages/next + working-directory: packages/next-swc - name: Upload artifact uses: actions/upload-artifact@v2.2.4 with: name: next-swc-dev-binary - path: packages/next/native/next-swc.linux-x64-gnu.node + path: packages/next-swc/native/next-swc.linux-x64-gnu.node - name: Clear the cargo caches if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} @@ -645,7 +645,7 @@ jobs: with: toolchain: nightly-2021-08-12 profile: minimal - - run: cd packages/next/build/swc && cargo test + - run: cd packages/next-swc && cargo test if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} # Build binaries for publishing @@ -723,8 +723,8 @@ jobs: id: binary-cache uses: actions/cache@v2 with: - path: packages/next/native/next-swc.${{ matrix.name }}.node - key: next-swc-nightly-2021-08-12-${{ matrix.target }}-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }} + path: packages/next-swc/native/next-swc.${{ matrix.name }}.node + key: next-swc-nightly-2021-08-12-${{ matrix.target }}-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next-swc/**') }} - name: Cross build aarch64 setup if: ${{ matrix.target == 'aarch64-apple-darwin' }} @@ -741,7 +741,7 @@ jobs: - name: Cache built files uses: actions/cache@v2 with: - path: ./packages/next/build/swc/target + path: ./packages/next-swc/target key: next-swc-cargo-cache-${{ matrix.os }}--${{ hashFiles('**/Cargo.lock') }} restore-keys: | next-swc-cargo-cache-${{ matrix.os }} @@ -751,13 +751,13 @@ jobs: run: yarn build-native --release --target ${{ matrix.target }} env: MACOSX_DEPLOYMENT_TARGET: '10.13' - working-directory: packages/next + working-directory: packages/next-swc - name: Upload artifact uses: actions/upload-artifact@v2.2.4 with: name: next-swc-binaries - path: packages/next/native/next-swc.${{ matrix.name }}.node + path: packages/next-swc/native/next-swc.${{ matrix.name }}.node - name: Clear the cargo caches run: | @@ -806,20 +806,20 @@ jobs: id: binary-cache uses: actions/cache@v2 with: - path: packages/next/native/next-swc.win32-ia32-msvc.node - key: next-swc-nightly-2021-08-12-win32-ia32-msvc-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }} + path: packages/next-swc/native/next-swc.win32-ia32-msvc.node + key: next-swc-nightly-2021-08-12-win32-ia32-msvc-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next-swc/**') }} - name: Build if: ${{ steps.binary-cache.outputs.cache-hit != 'true' }} shell: bash run: yarn build-native --release --target i686-pc-windows-msvc - working-directory: packages/next + working-directory: packages/next-swc - name: Upload artifact uses: actions/upload-artifact@v2 with: name: next-swc-binaries - path: packages/next/native/next-swc.win32-ia32-msvc.node + path: packages/next-swc/native/next-swc.win32-ia32-msvc.node build-windows-aarch64: needs: build @@ -852,20 +852,20 @@ jobs: id: binary-cache uses: actions/cache@v2 with: - path: packages/next/native/next-swc.win32-arm64-msvc.node - key: next-swc-nightly-2021-08-12-win32-arm64-msvc-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }} + path: packages/next-swc/native/next-swc.win32-arm64-msvc.node + key: next-swc-nightly-2021-08-12-win32-arm64-msvc-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next-swc/**') }} - name: Build if: ${{ steps.binary-cache.outputs.cache-hit != 'true' }} shell: bash run: yarn build-native --release --target aarch64-pc-windows-msvc - working-directory: packages/next + working-directory: packages/next-swc - name: Upload artifact uses: actions/upload-artifact@v2 with: name: next-swc-binaries - path: packages/next/native/next-swc.win32-arm64-msvc.node + path: packages/next-swc/native/next-swc.win32-arm64-msvc.node build-linux-musl: needs: build @@ -901,8 +901,8 @@ jobs: id: binary-cache uses: actions/cache@v2 with: - path: packages/next/native/next-swc.linux-x64-musl.node - key: next-swc-nightly-2021-08-12-linux-x64-musl-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }} + path: packages/next-swc/native/next-swc.linux-x64-musl.node + key: next-swc-nightly-2021-08-12-linux-x64-musl-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next-swc/**') }} - name: 'Build' if: ${{ steps.binary-cache.outputs.cache-hit != 'true' }} @@ -913,7 +913,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: next-swc-binaries - path: packages/next/native/next-swc.linux-x64-musl.node + path: packages/next-swc/native/next-swc.linux-x64-musl.node build-linux-aarch64: needs: build @@ -960,19 +960,19 @@ jobs: id: binary-cache uses: actions/cache@v2 with: - path: packages/next/native/next-swc.linux-arm64-gnu.node - key: next-swc-nightly-2021-08-12-linux-arm64-gnu-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }} + path: packages/next-swc/native/next-swc.linux-arm64-gnu.node + key: next-swc-nightly-2021-08-12-linux-arm64-gnu-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next-swc/**') }} - name: Cross build aarch64 if: ${{ steps.binary-cache.outputs.cache-hit != 'true' }} run: yarn build-native --release --target aarch64-unknown-linux-gnu - working-directory: packages/next + working-directory: packages/next-swc - name: Upload artifact uses: actions/upload-artifact@v2 with: name: next-swc-binaries - path: packages/next/native/next-swc.linux-arm64-gnu.node + path: packages/next-swc/native/next-swc.linux-arm64-gnu.node build-linux-aarch64-musl: needs: build @@ -1017,19 +1017,19 @@ jobs: id: binary-cache uses: actions/cache@v2 with: - path: packages/next/native/next-swc.linux-arm64-musl.node - key: next-swc-nightly-2021-08-12-linux-arm64-musl-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }} + path: packages/next-swc/native/next-swc.linux-arm64-musl.node + key: next-swc-nightly-2021-08-12-linux-arm64-musl-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next-swc/**') }} - name: Cross build aarch64 if: ${{ steps.binary-cache.outputs.cache-hit != 'true' }} run: yarn build-native --release --target aarch64-unknown-linux-musl - working-directory: packages/next + working-directory: packages/next-swc - name: Upload artifact uses: actions/upload-artifact@v2 with: name: next-swc-binaries - path: packages/next/native/next-swc.linux-arm64-musl.node + path: packages/next-swc/native/next-swc.linux-arm64-musl.node build-linux-arm7: needs: build @@ -1076,19 +1076,19 @@ jobs: id: binary-cache uses: actions/cache@v2 with: - path: packages/next/native/next-swc.linux-arm-gnueabihf.node - key: next-swc-nightly-2021-08-12-linux-arm-gnueabihf-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }} + path: packages/next-swc/native/next-swc.linux-arm-gnueabihf.node + key: next-swc-nightly-2021-08-12-linux-arm-gnueabihf-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next-swc/**') }} - name: Cross build aarch64 if: ${{ steps.binary-cache.outputs.cache-hit != 'true' }} run: yarn build-native --release --target armv7-unknown-linux-gnueabihf - working-directory: packages/next + working-directory: packages/next-swc - name: Upload artifact uses: actions/upload-artifact@v2 with: name: next-swc-binaries - path: packages/next/native/next-swc.linux-arm-gnueabihf.node + path: packages/next-swc/native/next-swc.linux-arm-gnueabihf.node build-android-aarch64: needs: build @@ -1121,8 +1121,8 @@ jobs: id: binary-cache uses: actions/cache@v2 with: - path: packages/next/native/next-swc.android-arm64.node - key: next-swc-nightly-2021-08-12-android-arm64-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }} + path: packages/next-swc/native/next-swc.android-arm64.node + key: next-swc-nightly-2021-08-12-android-arm64-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next-swc/**') }} - name: Build if: ${{ steps.binary-cache.outputs.cache-hit != 'true' }} @@ -1130,13 +1130,13 @@ jobs: run: | export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android24-clang" yarn build-native --release --target aarch64-linux-android - working-directory: packages/next + working-directory: packages/next-swc - name: Upload artifact uses: actions/upload-artifact@v2 with: name: next-swc-binaries - path: packages/next/native/next-swc.android-arm64.node + path: packages/next-swc/native/next-swc.android-arm64.node build-wasm: needs: build @@ -1177,15 +1177,15 @@ jobs: run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: Build - run: (wasm-pack build packages/next/build/swc/crates/wasm --release --scope=next --target ${{ matrix.target }}) + run: (wasm-pack build packages/next-swc/crates/wasm --release --scope=next --target ${{ matrix.target }}) - name: Add target to folder name - run: mv packages/next/build/swc/crates/wasm/pkg packages/next/build/swc/crates/wasm/pkg-${{ matrix.target }} + run: mv packages/next-swc/crates/wasm/pkg packages/next-swc/crates/wasm/pkg-${{ matrix.target }} - name: Upload artifact uses: actions/upload-artifact@v2 with: name: wasm-binaries - path: packages/next/build/swc/crates/wasm/pkg-* + path: packages/next-swc/crates/wasm/pkg-* - - run: ls packages/next/build/swc/crates/wasm + - run: ls packages/next-swc/crates/wasm diff --git a/.github/workflows/pull_request_stats.yml b/.github/workflows/pull_request_stats.yml index 11d63ac5e5f8a..8662b70b92c82 100644 --- a/.github/workflows/pull_request_stats.yml +++ b/.github/workflows/pull_request_stats.yml @@ -53,8 +53,8 @@ jobs: uses: actions/cache@v2 if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} with: - path: packages/next/native/next-swc.linux-x64-gnu.node - key: dev-next-swc-nightly-2021-08-12-linux-x64-gnu-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }} + path: packages/next-swc/native/next-swc.linux-x64-gnu.node + key: dev-next-swc-nightly-2021-08-12-linux-x64-gnu-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next-swc/**') }} # We use restore-key to pick latest cache. # We will not get exact match, but doc says @@ -63,7 +63,7 @@ jobs: - name: Cache built files uses: actions/cache@v2 with: - path: ./packages/next/build/swc/target + path: ./packages/next-target key: next-swc-cargo-cache-ubuntu-18.04--${{ hashFiles('**/Cargo.lock') }} restore-keys: | next-swc-cargo-cache-ubuntu-18.04 @@ -77,13 +77,13 @@ jobs: run: yarn build-native env: MACOSX_DEPLOYMENT_TARGET: '10.13' - working-directory: packages/next + working-directory: packages/next-swc - name: Upload artifact uses: actions/upload-artifact@v2.2.4 with: name: next-swc-dev-binary - path: packages/next/native/next-swc.linux-x64-gnu.node + path: packages/next-swc/native/next-swc.linux-x64-gnu.node - name: Clear the cargo caches if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} @@ -107,9 +107,9 @@ jobs: if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} with: name: next-swc-dev-binary - path: packages/next/native + path: packages/next-swc/native - - run: cp -r packages/next/native .github/actions/next-stats-action/native + - run: cp -r packages/next-swc/native .github/actions/next-stats-action/native if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }} - uses: ./.github/actions/next-stats-action diff --git a/.prettierignore b/.prettierignore index 2aaa01cc47b18..f63e5c00ba3f4 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,7 +10,7 @@ packages/react-dev-overlay/lib/** **/__tmp__/** lerna.json .github/actions/next-stats-action/.work -packages/next/build/swc/crates/**/* +packages/next-swc/crates/**/* packages/next-codemod/transforms/__testfixtures__/**/* packages/next-codemod/transforms/__tests__/**/* packages/next-codemod/**/*.js diff --git a/.prettierignore_staged b/.prettierignore_staged index 77a06f9e39a6d..014df0fc51171 100644 --- a/.prettierignore_staged +++ b/.prettierignore_staged @@ -1,7 +1,7 @@ **/.next/** **/_next/** **/dist/** -packages/next/build/swc/crates/** +packages/next-swc/crates/** packages/next/compiled/**/* packages/next/bundles/webpack/packages/*.runtime.js lerna.json diff --git a/contributing.md b/contributing.md index 1535ae5d4617a..83de4b8222187 100644 --- a/contributing.md +++ b/contributing.md @@ -51,7 +51,7 @@ yarn build yarn prepublish ``` -By default the latest canary of the next-swc binaries will be installed and used. If you are actively working on Rust code or you need to test out the most recent Rust code that hasn't been published as a canary yet you can [install Rust](https://www.rust-lang.org/tools/install) and run `yarn --cwd packages/next build-native`. +By default the latest canary of the next-swc binaries will be installed and used. If you are actively working on Rust code or you need to test out the most recent Rust code that hasn't been published as a canary yet you can [install Rust](https://www.rust-lang.org/tools/install) and run `yarn --cwd packages/next-swc build-native`. If you need to clean the project for any reason, use `yarn clean`. diff --git a/packages/next/build/swc/.cargo/config.toml b/packages/next-swc/.cargo/config.toml similarity index 100% rename from packages/next/build/swc/.cargo/config.toml rename to packages/next-swc/.cargo/config.toml diff --git a/packages/next/build/swc/.rustfmt.toml b/packages/next-swc/.rustfmt.toml similarity index 100% rename from packages/next/build/swc/.rustfmt.toml rename to packages/next-swc/.rustfmt.toml diff --git a/packages/next/build/swc/Cargo.lock b/packages/next-swc/Cargo.lock similarity index 100% rename from packages/next/build/swc/Cargo.lock rename to packages/next-swc/Cargo.lock diff --git a/packages/next/build/swc/Cargo.toml b/packages/next-swc/Cargo.toml similarity index 100% rename from packages/next/build/swc/Cargo.toml rename to packages/next-swc/Cargo.toml diff --git a/packages/next/build/swc/crates/core/Cargo.toml b/packages/next-swc/crates/core/Cargo.toml similarity index 100% rename from packages/next/build/swc/crates/core/Cargo.toml rename to packages/next-swc/crates/core/Cargo.toml diff --git a/packages/next/build/swc/crates/core/src/amp_attributes.rs b/packages/next-swc/crates/core/src/amp_attributes.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/amp_attributes.rs rename to packages/next-swc/crates/core/src/amp_attributes.rs diff --git a/packages/next/build/swc/crates/core/src/auto_cjs/mod.rs b/packages/next-swc/crates/core/src/auto_cjs/mod.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/auto_cjs/mod.rs rename to packages/next-swc/crates/core/src/auto_cjs/mod.rs diff --git a/packages/next/build/swc/crates/core/src/disallow_re_export_all_in_page.rs b/packages/next-swc/crates/core/src/disallow_re_export_all_in_page.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/disallow_re_export_all_in_page.rs rename to packages/next-swc/crates/core/src/disallow_re_export_all_in_page.rs diff --git a/packages/next/build/swc/crates/core/src/hook_optimizer.rs b/packages/next-swc/crates/core/src/hook_optimizer.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/hook_optimizer.rs rename to packages/next-swc/crates/core/src/hook_optimizer.rs diff --git a/packages/next/build/swc/crates/core/src/lib.rs b/packages/next-swc/crates/core/src/lib.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/lib.rs rename to packages/next-swc/crates/core/src/lib.rs diff --git a/packages/next/build/swc/crates/core/src/next_dynamic.rs b/packages/next-swc/crates/core/src/next_dynamic.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/next_dynamic.rs rename to packages/next-swc/crates/core/src/next_dynamic.rs diff --git a/packages/next/build/swc/crates/core/src/next_ssg.rs b/packages/next-swc/crates/core/src/next_ssg.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/next_ssg.rs rename to packages/next-swc/crates/core/src/next_ssg.rs diff --git a/packages/next/build/swc/crates/core/src/page_config.rs b/packages/next-swc/crates/core/src/page_config.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/page_config.rs rename to packages/next-swc/crates/core/src/page_config.rs diff --git a/packages/next/build/swc/crates/core/src/remove_console.rs b/packages/next-swc/crates/core/src/remove_console.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/remove_console.rs rename to packages/next-swc/crates/core/src/remove_console.rs diff --git a/packages/next/build/swc/crates/core/src/styled_jsx/mod.rs b/packages/next-swc/crates/core/src/styled_jsx/mod.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/styled_jsx/mod.rs rename to packages/next-swc/crates/core/src/styled_jsx/mod.rs diff --git a/packages/next/build/swc/crates/core/src/styled_jsx/transform_css.rs b/packages/next-swc/crates/core/src/styled_jsx/transform_css.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/styled_jsx/transform_css.rs rename to packages/next-swc/crates/core/src/styled_jsx/transform_css.rs diff --git a/packages/next/build/swc/crates/core/src/styled_jsx/utils.rs b/packages/next-swc/crates/core/src/styled_jsx/utils.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/styled_jsx/utils.rs rename to packages/next-swc/crates/core/src/styled_jsx/utils.rs diff --git a/packages/next/build/swc/crates/core/src/top_level_binding_collector.rs b/packages/next-swc/crates/core/src/top_level_binding_collector.rs similarity index 100% rename from packages/next/build/swc/crates/core/src/top_level_binding_collector.rs rename to packages/next-swc/crates/core/src/top_level_binding_collector.rs diff --git a/packages/next/build/swc/crates/core/tests/errors.rs b/packages/next-swc/crates/core/tests/errors.rs similarity index 100% rename from packages/next/build/swc/crates/core/tests/errors.rs rename to packages/next-swc/crates/core/tests/errors.rs diff --git a/packages/next/build/swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/input.js b/packages/next-swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/input.js rename to packages/next-swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/input.js diff --git a/packages/next/build/swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/output.js b/packages/next-swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/output.js rename to packages/next-swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/output.js diff --git a/packages/next/build/swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/output.stderr b/packages/next-swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/output.stderr similarity index 100% rename from packages/next/build/swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/output.stderr rename to packages/next-swc/crates/core/tests/errors/re-export-all-in-page/re-export-all/output.stderr diff --git a/packages/next/build/swc/crates/core/tests/errors/re-export-all-in-page/re-export-default/input.js b/packages/next-swc/crates/core/tests/errors/re-export-all-in-page/re-export-default/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/errors/re-export-all-in-page/re-export-default/input.js rename to packages/next-swc/crates/core/tests/errors/re-export-all-in-page/re-export-default/input.js diff --git a/packages/next/build/swc/crates/core/tests/errors/re-export-all-in-page/re-export-default/output.js b/packages/next-swc/crates/core/tests/errors/re-export-all-in-page/re-export-default/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/errors/re-export-all-in-page/re-export-default/output.js rename to packages/next-swc/crates/core/tests/errors/re-export-all-in-page/re-export-default/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture.rs b/packages/next-swc/crates/core/tests/fixture.rs similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture.rs rename to packages/next-swc/crates/core/tests/fixture.rs diff --git a/packages/next/build/swc/crates/core/tests/fixture/amp/amp-classname/input.js b/packages/next-swc/crates/core/tests/fixture/amp/amp-classname/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/amp/amp-classname/input.js rename to packages/next-swc/crates/core/tests/fixture/amp/amp-classname/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/amp/amp-classname/output.js b/packages/next-swc/crates/core/tests/fixture/amp/amp-classname/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/amp/amp-classname/output.js rename to packages/next-swc/crates/core/tests/fixture/amp/amp-classname/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/next-dynamic/duplicated-imports/input.js b/packages/next-swc/crates/core/tests/fixture/next-dynamic/duplicated-imports/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/next-dynamic/duplicated-imports/input.js rename to packages/next-swc/crates/core/tests/fixture/next-dynamic/duplicated-imports/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/next-dynamic/duplicated-imports/output.js b/packages/next-swc/crates/core/tests/fixture/next-dynamic/duplicated-imports/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/next-dynamic/duplicated-imports/output.js rename to packages/next-swc/crates/core/tests/fixture/next-dynamic/duplicated-imports/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/next-dynamic/member-with-same-name/input.js b/packages/next-swc/crates/core/tests/fixture/next-dynamic/member-with-same-name/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/next-dynamic/member-with-same-name/input.js rename to packages/next-swc/crates/core/tests/fixture/next-dynamic/member-with-same-name/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/next-dynamic/member-with-same-name/output.js b/packages/next-swc/crates/core/tests/fixture/next-dynamic/member-with-same-name/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/next-dynamic/member-with-same-name/output.js rename to packages/next-swc/crates/core/tests/fixture/next-dynamic/member-with-same-name/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/next-dynamic/no-options/input.js b/packages/next-swc/crates/core/tests/fixture/next-dynamic/no-options/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/next-dynamic/no-options/input.js rename to packages/next-swc/crates/core/tests/fixture/next-dynamic/no-options/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/next-dynamic/no-options/output.js b/packages/next-swc/crates/core/tests/fixture/next-dynamic/no-options/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/next-dynamic/no-options/output.js rename to packages/next-swc/crates/core/tests/fixture/next-dynamic/no-options/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/next-dynamic/with-options/input.js b/packages/next-swc/crates/core/tests/fixture/next-dynamic/with-options/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/next-dynamic/with-options/input.js rename to packages/next-swc/crates/core/tests/fixture/next-dynamic/with-options/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/next-dynamic/with-options/output.js b/packages/next-swc/crates/core/tests/fixture/next-dynamic/with-options/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/next-dynamic/with-options/output.js rename to packages/next-swc/crates/core/tests/fixture/next-dynamic/with-options/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/next-dynamic/wrapped-import/input.js b/packages/next-swc/crates/core/tests/fixture/next-dynamic/wrapped-import/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/next-dynamic/wrapped-import/input.js rename to packages/next-swc/crates/core/tests/fixture/next-dynamic/wrapped-import/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/next-dynamic/wrapped-import/output.js b/packages/next-swc/crates/core/tests/fixture/next-dynamic/wrapped-import/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/next-dynamic/wrapped-import/output.js rename to packages/next-swc/crates/core/tests/fixture/next-dynamic/wrapped-import/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/page-config/amp-hybrid/input.js b/packages/next-swc/crates/core/tests/fixture/page-config/amp-hybrid/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/page-config/amp-hybrid/input.js rename to packages/next-swc/crates/core/tests/fixture/page-config/amp-hybrid/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/page-config/amp-hybrid/output.js b/packages/next-swc/crates/core/tests/fixture/page-config/amp-hybrid/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/page-config/amp-hybrid/output.js rename to packages/next-swc/crates/core/tests/fixture/page-config/amp-hybrid/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/page-config/amp-true/input.js b/packages/next-swc/crates/core/tests/fixture/page-config/amp-true/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/page-config/amp-true/input.js rename to packages/next-swc/crates/core/tests/fixture/page-config/amp-true/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/page-config/amp-true/output.js b/packages/next-swc/crates/core/tests/fixture/page-config/amp-true/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/page-config/amp-true/output.js rename to packages/next-swc/crates/core/tests/fixture/page-config/amp-true/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/remove-console/all/simple/input.js b/packages/next-swc/crates/core/tests/fixture/remove-console/all/simple/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/remove-console/all/simple/input.js rename to packages/next-swc/crates/core/tests/fixture/remove-console/all/simple/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/remove-console/all/simple/output.js b/packages/next-swc/crates/core/tests/fixture/remove-console/all/simple/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/remove-console/all/simple/output.js rename to packages/next-swc/crates/core/tests/fixture/remove-console/all/simple/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/remove-console/all/toplevel-override/input.js b/packages/next-swc/crates/core/tests/fixture/remove-console/all/toplevel-override/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/remove-console/all/toplevel-override/input.js rename to packages/next-swc/crates/core/tests/fixture/remove-console/all/toplevel-override/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/remove-console/all/toplevel-override/output.js b/packages/next-swc/crates/core/tests/fixture/remove-console/all/toplevel-override/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/remove-console/all/toplevel-override/output.js rename to packages/next-swc/crates/core/tests/fixture/remove-console/all/toplevel-override/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getServerSideProps/destructuring-assignment-array/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getServerSideProps/destructuring-assignment-array/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getServerSideProps/destructuring-assignment-array/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getServerSideProps/destructuring-assignment-array/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getServerSideProps/destructuring-assignment-array/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getServerSideProps/destructuring-assignment-array/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getServerSideProps/destructuring-assignment-array/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getServerSideProps/destructuring-assignment-array/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getServerSideProps/query-usage/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getServerSideProps/query-usage/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getServerSideProps/query-usage/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getServerSideProps/query-usage/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getServerSideProps/query-usage/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getServerSideProps/query-usage/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getServerSideProps/query-usage/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getServerSideProps/query-usage/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-array/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-array/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-array/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-array/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-array/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-array/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-array/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-array/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-object/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-object/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-object/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-object/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-object/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-object/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-object/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/destructuring-assignment-object/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/issue-30091/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/issue-30091/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/issue-30091/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/issue-30091/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/issue-30091/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/issue-30091/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/issue-30091/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/issue-30091/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/no-props/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/no-props/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/no-props/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/no-props/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/no-props/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/no-props/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/no-props/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/no-props/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-crash-for-class-declarations/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-crash-for-class-declarations/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-crash-for-class-declarations/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-crash-for-class-declarations/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-crash-for-class-declarations/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-crash-for-class-declarations/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-crash-for-class-declarations/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-crash-for-class-declarations/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-mix-up-bindings/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-mix-up-bindings/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-mix-up-bindings/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-mix-up-bindings/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-mix-up-bindings/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-mix-up-bindings/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-mix-up-bindings/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-mix-up-bindings/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-function-declarations/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-function-declarations/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-function-declarations/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-function-declarations/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-function-declarations/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-function-declarations/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-function-declarations/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-function-declarations/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-variable-declarations/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-variable-declarations/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-variable-declarations/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-variable-declarations/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-variable-declarations/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-variable-declarations/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-variable-declarations/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-not-remove-extra-named-export-variable-declarations/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-combined-named-export-specifiers/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-combined-named-export-specifiers/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-combined-named-export-specifiers/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-combined-named-export-specifiers/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-combined-named-export-specifiers/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-combined-named-export-specifiers/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-combined-named-export-specifiers/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-combined-named-export-specifiers/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-extra-named-export-speicifers/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-extra-named-export-speicifers/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-extra-named-export-speicifers/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-extra-named-export-speicifers/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-extra-named-export-speicifers/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-extra-named-export-speicifers/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-extra-named-export-speicifers/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-extra-named-export-speicifers/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations-async/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations-async/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations-async/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations-async/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations-async/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations-async/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations-async/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations-async/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-function-declarations/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations-async/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations-async/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations-async/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations-async/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations-async/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations-async/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations-async/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations-async/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-named-export-variable-declarations/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations-dependents-variables-functions-imports/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations-dependents-variables-functions-imports/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations-dependents-variables-functions-imports/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations-dependents-variables-functions-imports/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations-dependents-variables-functions-imports/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations-dependents-variables-functions-imports/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations-dependents-variables-functions-imports/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations-dependents-variables-functions-imports/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-function-declarations/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations-safe/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations-safe/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations-safe/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations-safe/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations-safe/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations-safe/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations-safe/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations-safe/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-re-exported-variable-declarations/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-separate-named-export-specifiers/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-separate-named-export-specifiers/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-separate-named-export-specifiers/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-separate-named-export-specifiers/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-separate-named-export-specifiers/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-separate-named-export-specifiers/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-separate-named-export-specifiers/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-separate-named-export-specifiers/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-babel-style-memoized-function/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-babel-style-memoized-function/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-babel-style-memoized-function/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-babel-style-memoized-function/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-babel-style-memoized-function/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-babel-style-memoized-function/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-babel-style-memoized-function/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-babel-style-memoized-function/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports-2/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports-2/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports-2/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports-2/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports-2/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports-2/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports-2/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports-2/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-class-exports/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-full-re-export/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-full-re-export/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-full-re-export/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-full-re-export/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-full-re-export/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-full-re-export/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-full-re-export/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-full-re-export/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-named-export-as-default/input.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-named-export-as-default/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-named-export-as-default/input.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-named-export-as-default/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-named-export-as-default/output.js b/packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-named-export-as-default/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-named-export-as-default/output.js rename to packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-support-named-export-as-default/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/absent/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/absent/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/absent/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/absent/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/absent/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/absent/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/absent/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/absent/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/attribute-generation-classname-rewriting/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/attribute-generation-classname-rewriting/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/attribute-generation-classname-rewriting/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/attribute-generation-classname-rewriting/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/attribute-generation-classname-rewriting/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/attribute-generation-classname-rewriting/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/attribute-generation-classname-rewriting/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/attribute-generation-classname-rewriting/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/attribute-generation-modes/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/attribute-generation-modes/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/attribute-generation-modes/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/attribute-generation-modes/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/attribute-generation-modes/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/attribute-generation-modes/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/attribute-generation-modes/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/attribute-generation-modes/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/class/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/class/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/class/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/class/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/class/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/class/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/class/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/class/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/comments/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/comments/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/comments/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/comments/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/comments/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/comments/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/comments/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/comments/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/component-attribute/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/component-attribute/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/component-attribute/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/component-attribute/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/component-attribute/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/component-attribute/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/component-attribute/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/component-attribute/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/conflicts/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/conflicts/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/conflicts/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/conflicts/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/conflicts/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/conflicts/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/conflicts/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/conflicts/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/css-selector-after-pseudo/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/css-selector-after-pseudo/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/css-selector-after-pseudo/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/css-selector-after-pseudo/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/css-selector-after-pseudo/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/css-selector-after-pseudo/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/css-selector-after-pseudo/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/css-selector-after-pseudo/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/css-tag-same-file/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/css-tag-same-file/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/css-tag-same-file/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/css-tag-same-file/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/css-tag-same-file/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/css-tag-same-file/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/css-tag-same-file/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/css-tag-same-file/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/different-jsx-ids/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/different-jsx-ids/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/different-jsx-ids/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/different-jsx-ids/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/different-jsx-ids/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/different-jsx-ids/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/different-jsx-ids/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/different-jsx-ids/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element-class/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element-class/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element-class/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element-class/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element-class/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element-class/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element-class/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element-class/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element-external/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element-external/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element-external/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element-external/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element-external/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element-external/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element-external/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element-external/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-element/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-element/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-this-in-arrow/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-this-in-arrow/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-this-in-arrow/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-this-in-arrow/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-this-in-arrow/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-this-in-arrow/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/dynamic-this-in-arrow/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/dynamic-this-in-arrow/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/exported-jsx-style/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/exported-jsx-style/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/exported-jsx-style/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/exported-jsx-style/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/exported-jsx-style/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/exported-jsx-style/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/exported-jsx-style/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/exported-jsx-style/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/exported-non-jsx-style/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/exported-non-jsx-style/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/exported-non-jsx-style/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/exported-non-jsx-style/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/exported-non-jsx-style/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/exported-non-jsx-style/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/exported-non-jsx-style/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/exported-non-jsx-style/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/expressions/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/expressions/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/expressions/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/expressions/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/expressions/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/expressions/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/expressions/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/expressions/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-nested-scope/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/external-nested-scope/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-nested-scope/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/external-nested-scope/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-nested-scope/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/external-nested-scope/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-nested-scope/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/external-nested-scope/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-global/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-global/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-global/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-global/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-global/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-global/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-global/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-global/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-multi-line/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-multi-line/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-multi-line/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-multi-line/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-multi-line/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-multi-line/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-multi-line/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet-multi-line/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/external-stylesheet/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/external-stylesheet/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/fragment/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/fragment/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/fragment/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/fragment/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/fragment/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/fragment/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/fragment/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/fragment/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global-child-selector/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/global-child-selector/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global-child-selector/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/global-child-selector/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global-child-selector/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/global-child-selector/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global-child-selector/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/global-child-selector/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global-redundant/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/global-redundant/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global-redundant/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/global-redundant/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global-redundant/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/global-redundant/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global-redundant/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/global-redundant/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/global/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/global/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/global/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/global/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/global/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/issue-30480/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/issue-30480/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/issue-30480/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/issue-30480/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/issue-30480/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/issue-30480/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/issue-30480/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/issue-30480/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/issue-30570/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/issue-30570/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/issue-30570/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/issue-30570/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/issue-30570/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/issue-30570/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/issue-30570/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/issue-30570/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/mixed-global-scoped/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/mixed-global-scoped/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/mixed-global-scoped/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/mixed-global-scoped/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/mixed-global-scoped/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/mixed-global-scoped/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/mixed-global-scoped/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/mixed-global-scoped/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/multiple-jsx/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/multiple-jsx/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/multiple-jsx/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/multiple-jsx/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/multiple-jsx/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/multiple-jsx/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/multiple-jsx/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/multiple-jsx/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/nested-style-tags/index.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/nested-style-tags/index.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/nested-style-tags/index.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/nested-style-tags/index.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/nested-style-tags/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/nested-style-tags/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/nested-style-tags/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/nested-style-tags/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/non-styled-jsx-style/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/non-styled-jsx-style/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/non-styled-jsx-style/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/non-styled-jsx-style/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/non-styled-jsx-style/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/non-styled-jsx-style/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/non-styled-jsx-style/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/non-styled-jsx-style/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/not-styled-jsx-tagged-templates/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/not-styled-jsx-tagged-templates/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/not-styled-jsx-tagged-templates/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/not-styled-jsx-tagged-templates/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/not-styled-jsx-tagged-templates/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/not-styled-jsx-tagged-templates/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/not-styled-jsx-tagged-templates/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/not-styled-jsx-tagged-templates/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/number-after-placeholder/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/number-after-placeholder/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/number-after-placeholder/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/number-after-placeholder/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/number-after-placeholder/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/number-after-placeholder/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/number-after-placeholder/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/number-after-placeholder/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/one-off-global-selectors/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/one-off-global-selectors/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/one-off-global-selectors/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/one-off-global-selectors/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/one-off-global-selectors/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/one-off-global-selectors/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/one-off-global-selectors/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/one-off-global-selectors/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/source-maps/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/source-maps/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/source-maps/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/source-maps/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/stateless/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/stateless/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/stateless/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/stateless/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/stateless/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/stateless/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/stateless/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/stateless/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/styles-external-invalid/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/styles-external-invalid/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/styles-external-invalid/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/styles-external-invalid/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/styles-external-invalid2/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/styles-external-invalid2/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/styles-external-invalid2/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/styles-external-invalid2/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/styles/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/styles/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/styles/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/styles/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/styles/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/styles/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/styles/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/styles/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/styles2/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/styles2/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/styles2/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/styles2/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/too-many/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/too-many/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/too-many/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/too-many/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/too-many/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/too-many/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/too-many/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/too-many/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-escape-1/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-escape-1/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-escape-1/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-escape-1/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-escape-1/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-escape-1/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-escape-1/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-escape-1/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-escape-2/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-escape-2/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-escape-2/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-escape-2/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-escape-2/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-escape-2/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-escape-2/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-escape-2/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-1-as-property/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-1-as-property/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-1-as-property/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-1-as-property/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-1-as-property/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-1-as-property/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-1-as-property/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-1-as-property/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-2-as-part-of-value/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-2-as-part-of-value/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-2-as-part-of-value/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-2-as-part-of-value/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-2-as-part-of-value/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-2-as-part-of-value/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-2-as-part-of-value/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-2-as-part-of-value/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-3-as-value/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-3-as-value/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-3-as-value/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-3-as-value/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-3-as-value/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-3-as-value/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-3-as-value/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-3-as-value/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-4-as-part-of-value-in-multiple/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-4-as-part-of-value-in-multiple/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-4-as-part-of-value-in-multiple/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-4-as-part-of-value-in-multiple/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-4-as-part-of-value-in-multiple/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-4-as-part-of-value-in-multiple/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-4-as-part-of-value-in-multiple/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-4-as-part-of-value-in-multiple/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-5-values-of-multiple-properties/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-5-values-of-multiple-properties/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-5-values-of-multiple-properties/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-5-values-of-multiple-properties/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-5-values-of-multiple-properties/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-5-values-of-multiple-properties/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-5-values-of-multiple-properties/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/tpl-placeholder-5-values-of-multiple-properties/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/transform-css/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/transform-css/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/transform-css/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/transform-css/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/transform-css/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/transform-css/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/transform-css/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/transform-css/output.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/whitespace/input.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/whitespace/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/whitespace/input.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/whitespace/input.js diff --git a/packages/next/build/swc/crates/core/tests/fixture/styled-jsx/whitespace/output.js b/packages/next-swc/crates/core/tests/fixture/styled-jsx/whitespace/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/fixture/styled-jsx/whitespace/output.js rename to packages/next-swc/crates/core/tests/fixture/styled-jsx/whitespace/output.js diff --git a/packages/next/build/swc/crates/core/tests/full.rs b/packages/next-swc/crates/core/tests/full.rs similarity index 100% rename from packages/next/build/swc/crates/core/tests/full.rs rename to packages/next-swc/crates/core/tests/full.rs diff --git a/packages/next/build/swc/crates/core/tests/full/auto-cjs/1/input.js b/packages/next-swc/crates/core/tests/full/auto-cjs/1/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/full/auto-cjs/1/input.js rename to packages/next-swc/crates/core/tests/full/auto-cjs/1/input.js diff --git a/packages/next/build/swc/crates/core/tests/full/auto-cjs/1/output.js b/packages/next-swc/crates/core/tests/full/auto-cjs/1/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/full/auto-cjs/1/output.js rename to packages/next-swc/crates/core/tests/full/auto-cjs/1/output.js diff --git a/packages/next/build/swc/crates/core/tests/full/example/input.js b/packages/next-swc/crates/core/tests/full/example/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/full/example/input.js rename to packages/next-swc/crates/core/tests/full/example/input.js diff --git a/packages/next/build/swc/crates/core/tests/full/example/output.js b/packages/next-swc/crates/core/tests/full/example/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/full/example/output.js rename to packages/next-swc/crates/core/tests/full/example/output.js diff --git a/packages/next/build/swc/crates/core/tests/loader/css-hygiene-1/input.js b/packages/next-swc/crates/core/tests/loader/css-hygiene-1/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/loader/css-hygiene-1/input.js rename to packages/next-swc/crates/core/tests/loader/css-hygiene-1/input.js diff --git a/packages/next/build/swc/crates/core/tests/loader/css-hygiene-1/output.js b/packages/next-swc/crates/core/tests/loader/css-hygiene-1/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/loader/css-hygiene-1/output.js rename to packages/next-swc/crates/core/tests/loader/css-hygiene-1/output.js diff --git a/packages/next/build/swc/crates/core/tests/loader/example/input.js b/packages/next-swc/crates/core/tests/loader/example/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/loader/example/input.js rename to packages/next-swc/crates/core/tests/loader/example/input.js diff --git a/packages/next/build/swc/crates/core/tests/loader/example/output.js b/packages/next-swc/crates/core/tests/loader/example/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/loader/example/output.js rename to packages/next-swc/crates/core/tests/loader/example/output.js diff --git a/packages/next/build/swc/crates/core/tests/loader/front/attr-1/input.js b/packages/next-swc/crates/core/tests/loader/front/attr-1/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/loader/front/attr-1/input.js rename to packages/next-swc/crates/core/tests/loader/front/attr-1/input.js diff --git a/packages/next/build/swc/crates/core/tests/loader/front/attr-1/output.js b/packages/next-swc/crates/core/tests/loader/front/attr-1/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/loader/front/attr-1/output.js rename to packages/next-swc/crates/core/tests/loader/front/attr-1/output.js diff --git a/packages/next/build/swc/crates/core/tests/loader/issue-31627/input.js b/packages/next-swc/crates/core/tests/loader/issue-31627/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/loader/issue-31627/input.js rename to packages/next-swc/crates/core/tests/loader/issue-31627/input.js diff --git a/packages/next/build/swc/crates/core/tests/loader/issue-31627/output.js b/packages/next-swc/crates/core/tests/loader/issue-31627/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/loader/issue-31627/output.js rename to packages/next-swc/crates/core/tests/loader/issue-31627/output.js diff --git a/packages/next/build/swc/crates/core/tests/loader/styled-components/1/input.js b/packages/next-swc/crates/core/tests/loader/styled-components/1/input.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/loader/styled-components/1/input.js rename to packages/next-swc/crates/core/tests/loader/styled-components/1/input.js diff --git a/packages/next/build/swc/crates/core/tests/loader/styled-components/1/output.js b/packages/next-swc/crates/core/tests/loader/styled-components/1/output.js similarity index 100% rename from packages/next/build/swc/crates/core/tests/loader/styled-components/1/output.js rename to packages/next-swc/crates/core/tests/loader/styled-components/1/output.js diff --git a/packages/next/build/swc/crates/napi/Cargo.toml b/packages/next-swc/crates/napi/Cargo.toml similarity index 100% rename from packages/next/build/swc/crates/napi/Cargo.toml rename to packages/next-swc/crates/napi/Cargo.toml diff --git a/packages/next/build/swc/crates/napi/build.rs b/packages/next-swc/crates/napi/build.rs similarity index 100% rename from packages/next/build/swc/crates/napi/build.rs rename to packages/next-swc/crates/napi/build.rs diff --git a/packages/next/build/swc/crates/napi/npm/.gitignore b/packages/next-swc/crates/napi/npm/.gitignore similarity index 100% rename from packages/next/build/swc/crates/napi/npm/.gitignore rename to packages/next-swc/crates/napi/npm/.gitignore diff --git a/packages/next/build/swc/crates/napi/npm/android-arm64/README.md b/packages/next-swc/crates/napi/npm/android-arm64/README.md similarity index 100% rename from packages/next/build/swc/crates/napi/npm/android-arm64/README.md rename to packages/next-swc/crates/napi/npm/android-arm64/README.md diff --git a/packages/next/build/swc/crates/napi/npm/android-arm64/package.json b/packages/next-swc/crates/napi/npm/android-arm64/package.json similarity index 100% rename from packages/next/build/swc/crates/napi/npm/android-arm64/package.json rename to packages/next-swc/crates/napi/npm/android-arm64/package.json diff --git a/packages/next/build/swc/crates/napi/npm/darwin-arm64/README.md b/packages/next-swc/crates/napi/npm/darwin-arm64/README.md similarity index 100% rename from packages/next/build/swc/crates/napi/npm/darwin-arm64/README.md rename to packages/next-swc/crates/napi/npm/darwin-arm64/README.md diff --git a/packages/next/build/swc/crates/napi/npm/darwin-arm64/package.json b/packages/next-swc/crates/napi/npm/darwin-arm64/package.json similarity index 100% rename from packages/next/build/swc/crates/napi/npm/darwin-arm64/package.json rename to packages/next-swc/crates/napi/npm/darwin-arm64/package.json diff --git a/packages/next/build/swc/crates/napi/npm/darwin-x64/README.md b/packages/next-swc/crates/napi/npm/darwin-x64/README.md similarity index 100% rename from packages/next/build/swc/crates/napi/npm/darwin-x64/README.md rename to packages/next-swc/crates/napi/npm/darwin-x64/README.md diff --git a/packages/next/build/swc/crates/napi/npm/darwin-x64/package.json b/packages/next-swc/crates/napi/npm/darwin-x64/package.json similarity index 100% rename from packages/next/build/swc/crates/napi/npm/darwin-x64/package.json rename to packages/next-swc/crates/napi/npm/darwin-x64/package.json diff --git a/packages/next/build/swc/crates/napi/npm/linux-arm-gnueabihf/README.md b/packages/next-swc/crates/napi/npm/linux-arm-gnueabihf/README.md similarity index 100% rename from packages/next/build/swc/crates/napi/npm/linux-arm-gnueabihf/README.md rename to packages/next-swc/crates/napi/npm/linux-arm-gnueabihf/README.md diff --git a/packages/next/build/swc/crates/napi/npm/linux-arm-gnueabihf/package.json b/packages/next-swc/crates/napi/npm/linux-arm-gnueabihf/package.json similarity index 100% rename from packages/next/build/swc/crates/napi/npm/linux-arm-gnueabihf/package.json rename to packages/next-swc/crates/napi/npm/linux-arm-gnueabihf/package.json diff --git a/packages/next/build/swc/crates/napi/npm/linux-arm64-gnu/README.md b/packages/next-swc/crates/napi/npm/linux-arm64-gnu/README.md similarity index 100% rename from packages/next/build/swc/crates/napi/npm/linux-arm64-gnu/README.md rename to packages/next-swc/crates/napi/npm/linux-arm64-gnu/README.md diff --git a/packages/next/build/swc/crates/napi/npm/linux-arm64-gnu/package.json b/packages/next-swc/crates/napi/npm/linux-arm64-gnu/package.json similarity index 100% rename from packages/next/build/swc/crates/napi/npm/linux-arm64-gnu/package.json rename to packages/next-swc/crates/napi/npm/linux-arm64-gnu/package.json diff --git a/packages/next/build/swc/crates/napi/npm/linux-arm64-musl/README.md b/packages/next-swc/crates/napi/npm/linux-arm64-musl/README.md similarity index 100% rename from packages/next/build/swc/crates/napi/npm/linux-arm64-musl/README.md rename to packages/next-swc/crates/napi/npm/linux-arm64-musl/README.md diff --git a/packages/next/build/swc/crates/napi/npm/linux-arm64-musl/package.json b/packages/next-swc/crates/napi/npm/linux-arm64-musl/package.json similarity index 100% rename from packages/next/build/swc/crates/napi/npm/linux-arm64-musl/package.json rename to packages/next-swc/crates/napi/npm/linux-arm64-musl/package.json diff --git a/packages/next/build/swc/crates/napi/npm/linux-x64-gnu/README.md b/packages/next-swc/crates/napi/npm/linux-x64-gnu/README.md similarity index 100% rename from packages/next/build/swc/crates/napi/npm/linux-x64-gnu/README.md rename to packages/next-swc/crates/napi/npm/linux-x64-gnu/README.md diff --git a/packages/next/build/swc/crates/napi/npm/linux-x64-gnu/package.json b/packages/next-swc/crates/napi/npm/linux-x64-gnu/package.json similarity index 100% rename from packages/next/build/swc/crates/napi/npm/linux-x64-gnu/package.json rename to packages/next-swc/crates/napi/npm/linux-x64-gnu/package.json diff --git a/packages/next/build/swc/crates/napi/npm/linux-x64-musl/README.md b/packages/next-swc/crates/napi/npm/linux-x64-musl/README.md similarity index 100% rename from packages/next/build/swc/crates/napi/npm/linux-x64-musl/README.md rename to packages/next-swc/crates/napi/npm/linux-x64-musl/README.md diff --git a/packages/next/build/swc/crates/napi/npm/linux-x64-musl/package.json b/packages/next-swc/crates/napi/npm/linux-x64-musl/package.json similarity index 100% rename from packages/next/build/swc/crates/napi/npm/linux-x64-musl/package.json rename to packages/next-swc/crates/napi/npm/linux-x64-musl/package.json diff --git a/packages/next/build/swc/crates/napi/npm/win32-arm64-msvc/README.md b/packages/next-swc/crates/napi/npm/win32-arm64-msvc/README.md similarity index 100% rename from packages/next/build/swc/crates/napi/npm/win32-arm64-msvc/README.md rename to packages/next-swc/crates/napi/npm/win32-arm64-msvc/README.md diff --git a/packages/next/build/swc/crates/napi/npm/win32-arm64-msvc/package.json b/packages/next-swc/crates/napi/npm/win32-arm64-msvc/package.json similarity index 100% rename from packages/next/build/swc/crates/napi/npm/win32-arm64-msvc/package.json rename to packages/next-swc/crates/napi/npm/win32-arm64-msvc/package.json diff --git a/packages/next/build/swc/crates/napi/npm/win32-ia32-msvc/README.md b/packages/next-swc/crates/napi/npm/win32-ia32-msvc/README.md similarity index 100% rename from packages/next/build/swc/crates/napi/npm/win32-ia32-msvc/README.md rename to packages/next-swc/crates/napi/npm/win32-ia32-msvc/README.md diff --git a/packages/next/build/swc/crates/napi/npm/win32-ia32-msvc/package.json b/packages/next-swc/crates/napi/npm/win32-ia32-msvc/package.json similarity index 100% rename from packages/next/build/swc/crates/napi/npm/win32-ia32-msvc/package.json rename to packages/next-swc/crates/napi/npm/win32-ia32-msvc/package.json diff --git a/packages/next/build/swc/crates/napi/npm/win32-x64-msvc/README.md b/packages/next-swc/crates/napi/npm/win32-x64-msvc/README.md similarity index 100% rename from packages/next/build/swc/crates/napi/npm/win32-x64-msvc/README.md rename to packages/next-swc/crates/napi/npm/win32-x64-msvc/README.md diff --git a/packages/next/build/swc/crates/napi/npm/win32-x64-msvc/package.json b/packages/next-swc/crates/napi/npm/win32-x64-msvc/package.json similarity index 100% rename from packages/next/build/swc/crates/napi/npm/win32-x64-msvc/package.json rename to packages/next-swc/crates/napi/npm/win32-x64-msvc/package.json diff --git a/packages/next/build/swc/crates/napi/src/bundle/mod.rs b/packages/next-swc/crates/napi/src/bundle/mod.rs similarity index 100% rename from packages/next/build/swc/crates/napi/src/bundle/mod.rs rename to packages/next-swc/crates/napi/src/bundle/mod.rs diff --git a/packages/next/build/swc/crates/napi/src/lib.rs b/packages/next-swc/crates/napi/src/lib.rs similarity index 100% rename from packages/next/build/swc/crates/napi/src/lib.rs rename to packages/next-swc/crates/napi/src/lib.rs diff --git a/packages/next/build/swc/crates/napi/src/minify.rs b/packages/next-swc/crates/napi/src/minify.rs similarity index 100% rename from packages/next/build/swc/crates/napi/src/minify.rs rename to packages/next-swc/crates/napi/src/minify.rs diff --git a/packages/next/build/swc/crates/napi/src/transform.rs b/packages/next-swc/crates/napi/src/transform.rs similarity index 100% rename from packages/next/build/swc/crates/napi/src/transform.rs rename to packages/next-swc/crates/napi/src/transform.rs diff --git a/packages/next/build/swc/crates/napi/src/util.rs b/packages/next-swc/crates/napi/src/util.rs similarity index 100% rename from packages/next/build/swc/crates/napi/src/util.rs rename to packages/next-swc/crates/napi/src/util.rs diff --git a/packages/next/build/swc/crates/wasm/Cargo.toml b/packages/next-swc/crates/wasm/Cargo.toml similarity index 100% rename from packages/next/build/swc/crates/wasm/Cargo.toml rename to packages/next-swc/crates/wasm/Cargo.toml diff --git a/packages/next/build/swc/crates/wasm/README.md b/packages/next-swc/crates/wasm/README.md similarity index 100% rename from packages/next/build/swc/crates/wasm/README.md rename to packages/next-swc/crates/wasm/README.md diff --git a/packages/next/build/swc/crates/wasm/src/lib.rs b/packages/next-swc/crates/wasm/src/lib.rs similarity index 100% rename from packages/next/build/swc/crates/wasm/src/lib.rs rename to packages/next-swc/crates/wasm/src/lib.rs diff --git a/packages/next/native/.gitignore b/packages/next-swc/native/.gitignore similarity index 100% rename from packages/next/native/.gitignore rename to packages/next-swc/native/.gitignore diff --git a/packages/next-swc/package.json b/packages/next-swc/package.json new file mode 100644 index 0000000000000..dba08be024994 --- /dev/null +++ b/packages/next-swc/package.json @@ -0,0 +1,25 @@ +{ + "name": "@next/swc", + "version": "0.0.0", + "private": true, + "scripts": { + "build-native": "napi build --platform --cargo-name next_swc_napi native" + }, + "napi": { + "name": "next-swc", + "triples": { + "defaults": true, + "additional": [ + "i686-pc-windows-msvc", + "aarch64-unknown-linux-gnu", + "armv7-unknown-linux-gnueabihf", + "aarch64-apple-darwin", + "aarch64-linux-android", + "x86_64-unknown-freebsd", + "x86_64-unknown-linux-musl", + "aarch64-unknown-linux-musl", + "aarch64-pc-windows-msvc" + ] + } + } +} diff --git a/packages/next/build/swc/rust-toolchain b/packages/next-swc/rust-toolchain similarity index 100% rename from packages/next/build/swc/rust-toolchain rename to packages/next-swc/rust-toolchain diff --git a/packages/next/build/swc/index.js b/packages/next/build/swc/index.js index 1a1e7d8d93147..0245068c55c54 100644 --- a/packages/next/build/swc/index.js +++ b/packages/next/build/swc/index.js @@ -31,7 +31,7 @@ function loadBindings() { for (const triple of triples) { const localFilePath = path.join( __dirname, - '../../../native', + '../../../../next-swc/native', `next-swc.${triple.platformArchABI}.node` ) if (fs.existsSync(localFilePath)) { @@ -50,6 +50,16 @@ function loadBindings() { loadError = e } } + + // PR stats location/isolated tests location + try { + Log.info('Using locally built binary of @next/swc') + return require(`@next/swc/native/next-swc.${triple.platformArchABI}.node`) + } catch (e) { + if (e?.code !== 'MODULE_NOT_FOUND') { + loadError = e + } + } } if (loadError) { diff --git a/packages/next/package.json b/packages/next/package.json index dfa29910df4fe..66d526f653e43 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -57,8 +57,7 @@ "prepublish": "npm run release && yarn types", "types": "tsc --declaration --emitDeclarationOnly --declarationDir dist", "typescript": "tsc --noEmit --declaration", - "ncc-compiled": "ncc cache clean && taskr ncc", - "build-native": "napi build --platform --cargo-cwd build/swc --cargo-name next_swc_napi native" + "ncc-compiled": "ncc cache clean && taskr ncc" }, "taskr": { "requires": [ @@ -277,22 +276,5 @@ }, "engines": { "node": ">=12.22.0" - }, - "napi": { - "name": "next-swc", - "triples": { - "defaults": true, - "additional": [ - "i686-pc-windows-msvc", - "aarch64-unknown-linux-gnu", - "armv7-unknown-linux-gnueabihf", - "aarch64-apple-darwin", - "aarch64-linux-android", - "x86_64-unknown-freebsd", - "x86_64-unknown-linux-musl", - "aarch64-unknown-linux-musl", - "aarch64-pc-windows-msvc" - ] - } } } diff --git a/scripts/publish-native.js b/scripts/publish-native.js index a4cba4e3ea6a7..9b3a4c5985c2d 100755 --- a/scripts/publish-native.js +++ b/scripts/publish-native.js @@ -15,10 +15,7 @@ const cwd = process.cwd() let gitref = process.argv.slice(2)[0] // Copy binaries to package folders, update version, and publish - let nativePackagesDir = path.join( - cwd, - 'packages/next/build/swc/crates/napi/npm' - ) + let nativePackagesDir = path.join(cwd, 'packages/next-swc/crates/napi/npm') let platforms = (await readdir(nativePackagesDir)).filter( (name) => !name.startsWith('.') ) @@ -27,7 +24,7 @@ const cwd = process.cwd() try { let binaryName = `next-swc.${platform}.node` await copy( - path.join(cwd, 'packages/next/build/swc/dist', binaryName), + path.join(cwd, 'packages/next-swc/native', binaryName), path.join(nativePackagesDir, platform, binaryName) ) let pkg = JSON.parse( @@ -62,7 +59,7 @@ const cwd = process.cwd() } // Update name/version of wasm packages and publish - let wasmDir = path.join(cwd, 'packages/next/build/swc/crates/wasm') + let wasmDir = path.join(cwd, 'packages/next-swc/crates/wasm') for (let wasmTarget of ['web', 'nodejs']) { let wasmPkg = JSON.parse( await readFile(path.join(wasmDir, `pkg-${wasmTarget}/package.json`)) diff --git a/test/integration/pnpm-support/test/index.test.js b/test/integration/pnpm-support/test/index.test.js index 65e1c30749df5..a42d0bd0d74ee 100644 --- a/test/integration/pnpm-support/test/index.test.js +++ b/test/integration/pnpm-support/test/index.test.js @@ -106,8 +106,8 @@ async function usingPnpmCreateNextApp(appDir, fn) { await runPnpm(tempAppDir, 'add', `next@${nextTarballPath}`) await fs.copy( - path.join(__dirname, '../../../../packages/next/native'), - path.join(tempAppDir, 'node_modules/next/native') + path.join(__dirname, '../../../../packages/next-swc/native'), + path.join(tempAppDir, 'node_modules/next-swc/native') ) await fn(tempAppDir) diff --git a/test/lib/create-next-install.js b/test/lib/create-next-install.js index 30d3d701a46f4..190714959cb61 100644 --- a/test/lib/create-next-install.js +++ b/test/lib/create-next-install.js @@ -20,7 +20,7 @@ async function createNextInstall(dependencies) { const swcPkgPath = path.join(origRepoDir, 'node_modules/@next', folder) await fs.copy( swcPkgPath, - path.join(origRepoDir, 'packages/next/native'), + path.join(origRepoDir, 'packages/next-swc/native'), { filter: (item) => item === swcPkgPath ||