Skip to content
Open
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 .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
lib/**/*
scripts/**/*

# Shim entry points that re-export from the build output
mock/**/*

babel.config.js
metro.config.js
react-native.config.js
Expand Down
1 change: 1 addition & 0 deletions mock/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '../lib/typescript/src/mock/index';
1 change: 1 addition & 0 deletions mock/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/commonjs/mock/index.js');

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Shims prevent this from being a breaking change. Also achievable by introducing a package.json "exports" field.

4 changes: 2 additions & 2 deletions mock/index.ts → src/mock/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {MarkdownTextInput} from '../src';
import type {parseExpensiMark} from '../src';
import {MarkdownTextInput} from '..';
import type {parseExpensiMark} from '..';

global.jsi_setMarkdownRuntime = jest.fn();
global.jsi_registerMarkdownWorklet = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"verbatimModuleSyntax": true,
"typeRoots": ["node_modules/@types"]
},
"include": ["src/**/*", "mock/**/*"],
"include": ["src/**/*"],
"exclude": ["**/node_modules/**/*", "**/lib/**/*", "example/src/**/*", "WebExample/**/*", "**/Pods"]
}
Loading