diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..f6a525dbc --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +* text=auto eol=lf +*.bat text eol=crlf +*.cmd text eol=crlf diff --git a/.github/workflows/check-project.yml b/.github/workflows/check-project.yml index 7e7d2d08b..e4c44ac32 100644 --- a/.github/workflows/check-project.yml +++ b/.github/workflows/check-project.yml @@ -28,8 +28,20 @@ jobs: - name: Typecheck run: yarn typecheck - - name: Test - run: yarn test - - name: Build packages run: yarn lerna run prepare + + test: + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + + - name: Setup + uses: ./.github/actions/setup + + - name: Test + run: yarn test diff --git a/packages/react-native-builder-bob/src/init.ts b/packages/react-native-builder-bob/src/init.ts index fe363f78d..434eef924 100644 --- a/packages/react-native-builder-bob/src/init.ts +++ b/packages/react-native-builder-bob/src/init.ts @@ -157,11 +157,11 @@ export async function init() { if (targets.includes('module')) { esm = true; - entries.module = `./${path.join(output, 'module', 'index.js')}`; + entries.module = `./${path.posix.join(output, 'module', 'index.js')}`; } if (targets.includes('commonjs')) { - entries.commonjs = `./${path.join(output, 'commonjs', 'index.js')}`; + entries.commonjs = `./${path.posix.join(output, 'commonjs', 'index.js')}`; } const types: { @@ -170,7 +170,7 @@ export async function init() { if (targets.includes('typescript')) { if (targets.includes('commonjs') && targets.includes('module')) { - types.require = `./${path.join( + types.require = `./${path.posix.join( output, 'typescript', 'commonjs', @@ -178,7 +178,7 @@ export async function init() { 'index.d.ts' )}`; - types.import = `./${path.join( + types.import = `./${path.posix.join( output, 'typescript', 'module', @@ -186,7 +186,7 @@ export async function init() { 'index.d.ts' )}`; } else { - types.require = `./${path.join( + types.require = `./${path.posix.join( output, 'typescript', source,