Skip to content

Commit 3af8110

Browse files
committed
force export types
tries to avoid the ts language server from picking up a cached version of the published package
1 parent d1d70c4 commit 3af8110

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

core/src/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { Text, SafeAreaView, View, TextInput } from './components'
2+
export { createDOM, registerNativeDOM } from 'dom'

core/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './components'
2-
export * from '@barelyhuman/preact-native/dom'
1+
export { Text, SafeAreaView, View, TextInput } from './components'
2+
export { createDOM, registerNativeDOM } from 'dom'

dom/src/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './dom'
2+
export * from './register-native-dom'

dom/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './dom'
2-
export * from './register-native-dom'
1+
export { createDOM } from './dom'
2+
export { registerNativeDOM } from './register-native-dom'

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
"author": "",
99
"main": "./core/dist/core.js",
1010
"module": "./core/dist/core.mjs",
11-
"types": "./core/dist/core.d.ts",
11+
"types": "./core/src/core.d.ts",
1212
"exports": {
1313
".": {
14-
"types": "./core/dist/core.d.ts",
14+
"types": "./core/src/core.d.ts",
1515
"browser": "./core/dist/core.module.js",
1616
"umd": "./core/dist/core.umd.js",
1717
"import": "./core/dist/core.mjs",
1818
"require": "./core/dist/core.js"
1919
},
2020
"./dom": {
21-
"types": "./dom/dist/index.d.ts",
21+
"types": "./dom/src/index.d.ts",
2222
"browser": "./dom/dist/index.module.js",
2323
"umd": "./dom/dist/index.umd.js",
2424
"import": "./dom/dist/index.mjs",
@@ -35,11 +35,11 @@
3535
"scripts": {
3636
"nuke": "find . -name 'node_modules' -type d -prune | xargs rm -rf",
3737
"build": "npm-run-all --parallel build:*",
38-
"build:dom": "microbundle build --raw --generateTypes -f cjs,esm,umd --cwd dom",
39-
"build:core": "microbundle build --raw --generateTypes -f cjs,esm,umd --cwd core",
38+
"build:dom": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd dom",
39+
"build:core": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd core",
4040
"dev": "npm-run-all --parallel dev:*",
41-
"dev:dom": "microbundle build --raw --generateTypes -f cjs,esm,umd --cwd dom --watch",
42-
"dev:core": "microbundle build --raw --generateTypes -f cjs,esm,umd --cwd core --watch",
41+
"dev:dom": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd dom --watch",
42+
"dev:core": "microbundle build --raw --no-generateTypes -f cjs,esm,umd --cwd core --watch",
4343
"example:start": "cd example;yarn start",
4444
"example:ios": "cd example; yarn ios",
4545
"example:android": "cd example; yarn android",

0 commit comments

Comments
 (0)