Skip to content

Commit e4faa3b

Browse files
authored
Simpler builds (#1038)
* no commonjs * fix main file
1 parent 9d22312 commit e4faa3b

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@draftbit/core",
33
"version": "54.0.7",
44
"description": "Core (non-native) Components",
5-
"main": "lib/commonjs/index.js",
5+
"main": "./src/index.tsx",
6+
"react-native": "./src/index.tsx",
67
"types": "lib/typescript/src/index.d.ts",
78
"files": [
89
"src",
@@ -14,8 +15,7 @@
1415
"scripts": {
1516
"clean": "rimraf lib",
1617
"clean:modules": "rimraf node_modules",
17-
"build:commonjs": "../../node_modules/.bin/babel src --out-dir lib/commonjs --extensions .tsx,.ts,.js,.jsx",
18-
"build": "yarn clean && yarn build:commonjs && yarn tsc",
18+
"build": "yarn clean && yarn tsc",
1919
"test": "jest",
2020
"test:coverage": "jest --coverage"
2121
},

packages/maps/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@draftbit/maps",
33
"version": "54.0.7",
44
"description": "Map Components",
5-
"main": "lib/commonjs/index.js",
5+
"main": "./src/index.tsx",
6+
"react-native": "./src/index.tsx",
67
"types": "lib/typescript/src/index.d.ts",
78
"files": [
89
"src",
@@ -14,8 +15,7 @@
1415
"scripts": {
1516
"clean": "rimraf lib",
1617
"clean:modules": "rimraf node_modules",
17-
"build:commonjs": "../../node_modules/.bin/babel src --out-dir lib/commonjs --extensions .tsx,.ts,.js,.jsx",
18-
"build": "yarn clean && yarn build:commonjs && yarn tsc",
18+
"build": "yarn clean && yarn tsc",
1919
"test": "jest",
2020
"test:coverage": "jest --coverage"
2121
},

packages/native/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@draftbit/native",
33
"version": "54.0.7",
44
"description": "Draftbit UI Components that Depend on Native Components",
5-
"main": "lib/commonjs/index.js",
5+
"main": "./src/index.tsx",
6+
"react-native": "./src/index.tsx",
67
"types": "lib/typescript/src/index.d.ts",
78
"files": [
89
"src",
@@ -14,8 +15,7 @@
1415
"scripts": {
1516
"clean": "rimraf lib",
1617
"clean:modules": "rimraf node_modules",
17-
"build:commonjs": "../../node_modules/.bin/babel src --out-dir lib/commonjs --extensions .tsx,.ts,.js,.jsx",
18-
"build": "yarn clean && yarn build:commonjs && yarn tsc",
18+
"build": "yarn clean && yarn tsc",
1919
"test": "jest",
2020
"test:coverage": "jest --coverage"
2121
},

packages/theme/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@draftbit/theme",
33
"version": "54.0.7",
44
"description": "Draftbit's themeing system",
5-
"main": "lib/commonjs/index.js",
5+
"main": "./src/index.ts",
6+
"react-native": "./src/index.ts",
67
"types": "lib/typescript/src/index.d.ts",
78
"files": [
89
"src",
@@ -14,8 +15,7 @@
1415
"scripts": {
1516
"clean": "rimraf lib",
1617
"clean:modules": "rimraf node_modules",
17-
"build:commonjs": "../../node_modules/.bin/babel src --out-dir lib/commonjs --extensions .tsx,.ts,.js,.jsx",
18-
"build": "yarn clean && yarn build:commonjs && yarn tsc",
18+
"build": "yarn clean && yarn tsc",
1919
"test": "jest",
2020
"test:coverage": "jest --coverage"
2121
},

packages/ui/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@draftbit/ui",
33
"version": "54.0.7",
44
"description": "Draftbit UI Library",
5-
"main": "lib/commonjs/index.js",
5+
"main": "./src/index.tsx",
6+
"react-native": "./src/index.tsx",
67
"types": "lib/typescript/src/index.d.ts",
78
"files": [
89
"src",
@@ -18,8 +19,7 @@
1819
"scripts": {
1920
"clean": "rimraf lib",
2021
"clean:modules": "rimraf node_modules",
21-
"build:commonjs": "../../node_modules/.bin/babel src --out-dir lib/commonjs --extensions .tsx,.ts,.js,.jsx",
22-
"build": "yarn clean && yarn build:commonjs && yarn tsc",
22+
"build": "yarn clean && yarn tsc",
2323
"test": "jest",
2424
"test:coverage": "jest --coverage"
2525
},

0 commit comments

Comments
 (0)