Skip to content

Commit

Permalink
Update package builds to work for mono-repo (#208)
Browse files Browse the repository at this point in the history
* Update version number

* remove examples from excludes

* update build config for packages

* fix exports and versioning of dependent packages
  • Loading branch information
JDMathew authored Jul 1, 2024
1 parent cbbfa23 commit ba2095d
Show file tree
Hide file tree
Showing 16 changed files with 87 additions and 53 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@react-native-ama/monorepo",
"version": "1.0.0",
"version": "1.0.1-alpha.2",
"description": "Accessibility as a First-Class Citizen with React Native AMA",
"repository": "https://github.com/FormidableLabs/react-native-ama.git",
"homepage": "https://formidable.com/open-source/react-native-ama/",
Expand Down
8 changes: 4 additions & 4 deletions packages/animations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-ama/animations",
"version": "1.0.0",
"version": "1.0.1-alpha.2",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
Expand All @@ -23,8 +23,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@react-native-ama/internal": "*",
"@react-native-ama/core": "*"
"@react-native-ama/internal": "~1.0.1-alpha.1",
"@react-native-ama/core": "~1.0.1-alpha.1"
},
"peerDependencies": {
"react": "*",
Expand All @@ -49,4 +49,4 @@
},
"author": "",
"license": "MIT"
}
}
11 changes: 8 additions & 3 deletions packages/animations/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"outDir": "dist",
"target": "ES2016",
"jsx": "react-native",
"module": "CommonJS",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"outDir": "./dist",
"declaration": true
}
}
}
14 changes: 7 additions & 7 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@react-native-ama/core",
"version": "1.0.0",
"version": "1.0.1-alpha.2",
"description": "Accessible Mobile App Library for React Native",
"private": false,
"react-native": "src/index",
"types": "dist/core/src/index.d.ts",
"main": "dist/core/src/index.js",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"exports": {
".": [
{
"imports": "./dist/core/src/index.js",
"types": "./dist/core/src/index.d.ts"
"imports": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./dist/core/src/index.js"
"./dist/index.js"
]
},
"files": [
Expand All @@ -25,7 +25,7 @@
"test": "jest"
},
"dependencies": {
"@react-native-ama/internal": "*"
"@react-native-ama/internal": "~1.0.1-alpha.1"
},
"peerDependencies": {
"react": "*",
Expand Down
11 changes: 8 additions & 3 deletions packages/core/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"outDir": "dist",
"target": "ES2016",
"jsx": "react-native",
"module": "CommonJS",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"outDir": "./dist",
"declaration": true
}
}
}
10 changes: 5 additions & 5 deletions packages/extras/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-ama/extras",
"version": "1.0.0",
"version": "1.0.1-alpha.2",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
Expand All @@ -23,9 +23,9 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@react-native-ama/internal": "*",
"@react-native-ama/core": "*",
"@react-native-ama/animations": "*"
"@react-native-ama/internal": "~1.0.1-alpha.1",
"@react-native-ama/core": "~1.0.1-alpha.1",
"@react-native-ama/animations": "~1.0.1-alpha.1"
},
"peerDependencies": {
"react": "*",
Expand All @@ -51,4 +51,4 @@
},
"author": "",
"license": "MIT"
}
}
11 changes: 8 additions & 3 deletions packages/extras/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"outDir": "dist",
"target": "ES2016",
"jsx": "react-native",
"module": "CommonJS",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"outDir": "./dist",
"declaration": true
}
}
}
8 changes: 4 additions & 4 deletions packages/forms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-ama/forms",
"version": "1.0.0",
"version": "1.0.1-alpha.2",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
Expand All @@ -24,9 +24,9 @@
"test": "jest"
},
"dependencies": {
"@react-native-ama/core": "*",
"@react-native-ama/internal": "*",
"@react-native-ama/react-native": "*"
"@react-native-ama/core": "~1.0.1-alpha.1",
"@react-native-ama/internal": "~1.0.1-alpha.1",
"@react-native-ama/react-native": "~1.0.1-alpha.1"
},
"peerDependencies": {
"react": "*",
Expand Down
11 changes: 8 additions & 3 deletions packages/forms/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"outDir": "dist",
"target": "ES2016",
"jsx": "react-native",
"module": "CommonJS",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"outDir": "./dist",
"declaration": true
}
}
}
4 changes: 2 additions & 2 deletions packages/internal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-ama/internal",
"version": "1.0.0",
"version": "1.0.1-alpha.2",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -35,4 +35,4 @@
],
"author": "",
"license": "MIT"
}
}
11 changes: 8 additions & 3 deletions packages/internal/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "src/ama.rules.json"],
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"resolveJsonModule": true,
"outDir": "dist",
"target": "ES2016",
"jsx": "react-native",
"module": "CommonJS",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"outDir": "./dist",
"declaration": true
}
}
}
8 changes: 4 additions & 4 deletions packages/lists/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-ama/lists",
"version": "1.0.0",
"version": "1.0.1-alpha.2",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
Expand All @@ -23,8 +23,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@react-native-ama/internal": "*",
"@react-native-ama/core": "*"
"@react-native-ama/internal": "~1.0.1-alpha.1",
"@react-native-ama/core": "~1.0.1-alpha.1"
},
"peerDependencies": {
"expo": ">=47.0.0",
Expand Down Expand Up @@ -55,4 +55,4 @@
},
"author": "",
"license": "MIT"
}
}
11 changes: 8 additions & 3 deletions packages/lists/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"outDir": "dist",
"target": "ES2016",
"jsx": "react-native",
"module": "CommonJS",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"outDir": "./dist",
"declaration": true
}
}
}
6 changes: 3 additions & 3 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-ama/react-native",
"version": "1.0.0",
"version": "1.0.1-alpha.2",
"private": false,
"react-native": "src/index",
"types": "dist/index.d.ts",
Expand All @@ -23,8 +23,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@react-native-ama/internal": "*",
"@react-native-ama/core": "*"
"@react-native-ama/internal": "~1.0.1-alpha.1",
"@react-native-ama/core": "~1.0.1-alpha.1"
},
"peerDependencies": {
"react": "*",
Expand Down
11 changes: 8 additions & 3 deletions packages/react-native/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"outDir": "dist",
"target": "ES2016",
"jsx": "react-native",
"module": "CommonJS",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"outDir": "./dist",
"declaration": true
}
}
}
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"**/**/node_modules",
"node_modules",
"**/__mocks__",
"**/__tests__",
"examples"
"**/__tests__"
]
}

0 comments on commit ba2095d

Please sign in to comment.