Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/check-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions packages/react-native-builder-bob/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -170,23 +170,23 @@ 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',
source,
'index.d.ts'
)}`;

types.import = `./${path.join(
types.import = `./${path.posix.join(
output,
'typescript',
'module',
source,
'index.d.ts'
)}`;
} else {
types.require = `./${path.join(
types.require = `./${path.posix.join(
output,
'typescript',
source,
Expand Down
Loading