Skip to content

Commit e9072c9

Browse files
authored
Replace react-native-builder-bob with regular tsc (46) (#660)
* Replace react-native-builder-bob with regular tsc * New line at end of .gitignore * Re added "react-native" key to package json
1 parent afbf9c5 commit e9072c9

27 files changed

+55
-354
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"crosslink": "lerna link",
1717
"format": "prettier --write .",
1818
"lint": "eslint \"**/*.{ts,tsx}\"",
19-
"build": "lerna run prepack",
19+
"build": "lerna run build",
2020
"release": "lerna publish",
2121
"example:snack": "ts-node --transpile-only scripts/upload-to-snack.ts",
2222
"clean": "lerna run clean",
@@ -50,7 +50,6 @@
5050
"patch-package": "^6.4.7",
5151
"postinstall-postinstall": "^2.1.0",
5252
"prettier": "^2.7.1",
53-
"react-native-builder-bob": "^0.20.4",
5453
"rimraf": "^3.0.2",
5554
"ts-node": "^10.0.0",
5655
"typescript": "~4.7.4",

packages/core/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,5 @@ components.json
6767

6868
js.map
6969
.eslintcache
70+
71+
tsconfig.tsbuildinfo

packages/core/package.json

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
"name": "@draftbit/core",
33
"version": "46.12.7",
44
"description": "Core (non-native) Components",
5-
"main": "lib/commonjs/index.js",
6-
"module": "lib/module/index.js",
7-
"types": "lib/typescript/src/index.d.ts",
5+
"main": "lib/src/index.js",
6+
"types": "lib/src/index.d.ts",
87
"react-native": "src/index.tsx",
9-
"source": "src/index.tsx",
108
"files": [
119
"src",
1210
"lib",
@@ -17,7 +15,7 @@
1715
"scripts": {
1816
"clean": "rimraf lib",
1917
"clean:modules": "rimraf node_modules",
20-
"prepack": "bob build"
18+
"build": "yarn clean && yarn tsc"
2119
},
2220
"keywords": [
2321
"react-native",
@@ -75,21 +73,6 @@
7573
"@types/lodash.omit": "^4.5.6",
7674
"@types/lodash.tonumber": "^4.0.6"
7775
},
78-
"react-native-builder-bob": {
79-
"source": "src",
80-
"output": "lib",
81-
"targets": [
82-
"commonjs",
83-
"module",
84-
[
85-
"typescript",
86-
{
87-
"project": "tsconfig.build.json",
88-
"tsc": "../../node_modules/typescript/bin/tsc"
89-
}
90-
]
91-
]
92-
},
9376
"eslintIgnore": [
9477
"node_modules/",
9578
"lib/"

packages/core/tsconfig.build.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/core/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"extends": "../../tsconfig.json",
33
"references": [{ "path": "../types" }],
44
"compilerOptions": {
5-
"outDir": "./lib/typescript"
5+
"outDir": "./lib/"
66
}
77
}

packages/maps/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,5 @@ components.json
6767

6868
js.map
6969
.eslintcache
70+
71+
tsconfig.tsbuildinfo

packages/maps/package.json

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
"name": "@draftbit/maps",
33
"version": "46.12.7",
44
"description": "Map Components",
5-
"main": "lib/commonjs/index.js",
6-
"module": "lib/module/index.js",
7-
"types": "lib/typescript/src/index.d.ts",
5+
"main": "lib/src/index.js",
6+
"types": "lib/src/index.d.ts",
87
"react-native": "src/index.tsx",
9-
"source": "src/index.tsx",
108
"files": [
119
"src",
1210
"lib",
@@ -17,7 +15,7 @@
1715
"scripts": {
1816
"clean": "rimraf lib",
1917
"clean:modules": "rimraf node_modules",
20-
"prepack": "bob build"
18+
"build": "yarn clean && yarn tsc"
2119
},
2220
"keywords": [
2321
"react-native",
@@ -43,31 +41,6 @@
4341
"@draftbit/web-maps": "46.12.7",
4442
"react-native-maps": "0.31.1"
4543
},
46-
"react-native-builder-bob": {
47-
"source": "src",
48-
"output": "lib",
49-
"targets": [
50-
[
51-
"commonjs",
52-
{
53-
"sourceMaps": false
54-
}
55-
],
56-
[
57-
"module",
58-
{
59-
"sourceMaps": false
60-
}
61-
],
62-
[
63-
"typescript",
64-
{
65-
"project": "tsconfig.build.json",
66-
"tsc": "../../node_modules/typescript/bin/tsc"
67-
}
68-
]
69-
]
70-
},
7144
"eslintIgnore": [
7245
"node_modules/",
7346
"lib/"

packages/maps/tsconfig.build.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/maps/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"references": [{ "path": "../types" }],
3+
"references": [{ "path": "../types" }, { "path": "../web-maps" }],
44
"compilerOptions": {
5-
"outDir": "./lib/typescript"
5+
"outDir": "./lib/"
66
}
77
}

packages/native/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,5 @@ components.json
6767

6868
js.map
6969
.eslintcache
70+
71+
tsconfig.tsbuildinfo

0 commit comments

Comments
 (0)