Skip to content

Commit 3b8c037

Browse files
committed
Reconfigured bob the builder using automatic configuration
1 parent d9f9516 commit 3b8c037

File tree

7 files changed

+64
-43
lines changed

7 files changed

+64
-43
lines changed

package.json

Lines changed: 1 addition & 1 deletion
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 prepare",
19+
"build": "lerna run prepack",
2020
"release": "lerna publish",
2121
"example:snack": "ts-node --transpile-only scripts/upload-to-snack.ts",
2222
"clean": "lerna run clean",

packages/core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"!**/__mocks__"
1616
],
1717
"scripts": {
18-
"prepare": "bob build",
1918
"clean": "rimraf lib",
2019
"clean:modules": "rimraf node_modules",
2120
"prepack": "bob build"

packages/maps/package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "@draftbit/maps",
33
"version": "46.10.2",
44
"description": "Map Components",
5-
"main": "lib/commonjs/index.js",
6-
"module": "lib/module/index.js",
7-
"types": "lib/typescript/src/index.d.ts",
8-
"react-native": "src/index.tsx",
5+
"main": "lib\\commonjs\\index.js",
6+
"module": "lib\\module\\index.js",
7+
"types": "lib\\typescript\\src\\index.d.ts",
8+
"react-native": "src\\index.tsx",
99
"source": "src/index.tsx",
1010
"files": [
1111
"src",
@@ -15,9 +15,9 @@
1515
"!**/__mocks__"
1616
],
1717
"scripts": {
18-
"prepare": "bob build",
1918
"clean": "rimraf lib",
20-
"clean:modules": "rimraf node_modules"
19+
"clean:modules": "rimraf node_modules",
20+
"prepack": "bob build"
2121
},
2222
"keywords": [
2323
"react-native",
@@ -44,7 +44,6 @@
4444
"react-native-maps": "0.31.1"
4545
},
4646
"react-native-builder-bob": {
47-
"declarationMap": false,
4847
"source": "src",
4948
"output": "lib",
5049
"targets": [
@@ -68,5 +67,9 @@
6867
}
6968
]
7069
]
71-
}
70+
},
71+
"eslintIgnore": [
72+
"node_modules/",
73+
"lib/"
74+
]
7275
}

packages/native/package.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@
22
"name": "@draftbit/native",
33
"version": "46.10.2",
44
"description": "Draftbit UI Components that Depend on Native Components",
5-
"main": "lib/commonjs/index.js",
6-
"module": "lib/module/index.js",
7-
"types": "lib/typescript/src/index.d.ts",
8-
"react-native": "src/index.tsx",
5+
"main": "lib\\commonjs\\index.js",
6+
"module": "lib\\module\\index.js",
7+
"types": "lib\\typescript\\src\\index.d.ts",
8+
"react-native": "src\\index.tsx",
99
"source": "src/index.tsx",
1010
"files": [
1111
"src",
12-
"lib"
12+
"lib",
13+
"!**/__tests__",
14+
"!**/__fixtures__",
15+
"!**/__mocks__"
1316
],
1417
"scripts": {
15-
"prepare": "bob build",
1618
"clean": "rimraf lib",
17-
"clean:modules": "rimraf node_modules"
19+
"clean:modules": "rimraf node_modules",
20+
"prepack": "bob build"
1821
},
1922
"keywords": [
2023
"react-native",
@@ -47,7 +50,6 @@
4750
"react-native-webview": "11.23.0"
4851
},
4952
"react-native-builder-bob": {
50-
"declarationMap": false,
5153
"source": "src",
5254
"output": "lib",
5355
"targets": [
@@ -71,5 +73,9 @@
7173
}
7274
]
7375
]
74-
}
76+
},
77+
"eslintIgnore": [
78+
"node_modules/",
79+
"lib/"
80+
]
7581
}

packages/types/package.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@
22
"name": "@draftbit/types",
33
"version": "46.10.2",
44
"description": "Shared constants and types between native and core components",
5-
"main": "lib/commonjs/index.js",
6-
"module": "lib/module/index.js",
7-
"types": "lib/typescript/src/index.d.ts",
8-
"react-native": "src/index.ts",
5+
"main": "lib\\commonjs\\index.js",
6+
"module": "lib\\module\\index.js",
7+
"types": "lib\\typescript\\src\\index.d.ts",
8+
"react-native": "src\\index.ts",
99
"source": "src/index.ts",
1010
"files": [
1111
"src",
12-
"lib"
12+
"lib",
13+
"!**/__tests__",
14+
"!**/__fixtures__",
15+
"!**/__mocks__"
1316
],
1417
"scripts": {
15-
"prepare": "bob build",
1618
"clean": "rimraf lib",
17-
"clean:modules": "rimraf node_modules"
19+
"clean:modules": "rimraf node_modules",
20+
"prepack": "bob build"
1821
},
1922
"keywords": [
2023
"react-native",
@@ -36,7 +39,6 @@
3639
},
3740
"homepage": "https://github.com/draftbit/react-native-jigsaw#readme",
3841
"react-native-builder-bob": {
39-
"declarationMap": false,
4042
"source": "src",
4143
"output": "lib",
4244
"targets": [
@@ -60,5 +62,9 @@
6062
}
6163
]
6264
]
63-
}
65+
},
66+
"eslintIgnore": [
67+
"node_modules/",
68+
"lib/"
69+
]
6470
}

packages/ui/package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "@draftbit/ui",
33
"version": "46.10.2",
44
"description": "Draftbit UI Library",
5-
"main": "lib/commonjs/index.js",
6-
"module": "lib/module/index.js",
7-
"types": "lib/typescript/src/index.d.ts",
8-
"react-native": "src/index.tsx",
5+
"main": "lib\\commonjs\\index.js",
6+
"module": "lib\\module\\index.js",
7+
"types": "lib\\typescript\\src\\index.d.ts",
8+
"react-native": "src\\index.tsx",
99
"source": "src/index.tsx",
1010
"files": [
1111
"src",
@@ -19,9 +19,9 @@
1919
"draftbit-ui.podspec"
2020
],
2121
"scripts": {
22-
"prepare": "bob build",
2322
"clean": "rimraf lib",
24-
"clean:modules": "rimraf node_modules"
23+
"clean:modules": "rimraf node_modules",
24+
"prepack": "bob build"
2525
},
2626
"keywords": [
2727
"react-native",
@@ -47,7 +47,6 @@
4747
"@draftbit/native": "46.10.2"
4848
},
4949
"react-native-builder-bob": {
50-
"declarationMap": false,
5150
"source": "src",
5251
"output": "lib",
5352
"targets": [
@@ -71,5 +70,9 @@
7170
}
7271
]
7372
]
74-
}
73+
},
74+
"eslintIgnore": [
75+
"node_modules/",
76+
"lib/"
77+
]
7578
}

packages/web-maps/package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "@draftbit/web-maps",
33
"version": "46.10.2",
44
"description": "Web Map Components",
5-
"main": "lib/commonjs/index.js",
6-
"module": "lib/module/index.js",
7-
"types": "lib/typescript/src/index.d.ts",
8-
"react-native": "src/index.tsx",
5+
"main": "lib\\commonjs\\index.js",
6+
"module": "lib\\module\\index.js",
7+
"types": "lib\\typescript\\src\\index.d.ts",
8+
"react-native": "src\\index.tsx",
99
"source": "src/index.tsx",
1010
"files": [
1111
"src",
@@ -15,9 +15,9 @@
1515
"!**/__mocks__"
1616
],
1717
"scripts": {
18-
"prepare": "bob build",
1918
"clean": "rimraf lib",
20-
"clean:modules": "rimraf node_modules"
19+
"clean:modules": "rimraf node_modules",
20+
"prepack": "bob build"
2121
},
2222
"keywords": [
2323
"react-native",
@@ -66,5 +66,9 @@
6666
}
6767
]
6868
]
69-
}
69+
},
70+
"eslintIgnore": [
71+
"node_modules/",
72+
"lib/"
73+
]
7074
}

0 commit comments

Comments
 (0)