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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
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 @@
- 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
Comment on lines +35 to +47

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what token is used here?

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