Skip to content

Commit

Permalink
TS configs
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Jan 10, 2020
1 parent 31f8f57 commit 1ccb774
Show file tree
Hide file tree
Showing 65 changed files with 928 additions and 1,703 deletions.
1 change: 1 addition & 0 deletions .codesandbox/templates/reach-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@reach/portal": "latest",
"@reach/rect": "latest",
"@reach/skip-nav": "latest",
"@reach/slider": "latest",
"@reach/tabs": "latest",
"@reach/tooltip": "latest",
"@reach/utils": "latest",
Expand Down
1 change: 1 addition & 0 deletions .yarnclean
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@types/react-native
6 changes: 6 additions & 0 deletions build/createConfig.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
// https://github.com/jaredpalmer/tsdx#customization
let globals = {
invariant: "Invariant",
tslib: "TSLib",
"prop-types": "PropTypes",
"react-dom": "ReactDOM",
"@reach/auto-id": "ReachAutoID",
"@reach/dialog": "ReachDialog",
"@reach/popover": "ReachPopover",
"@reach/portal": "ReachPortal",
"@reach/rect": "ReactRect",
"@reach/visually-hidden": "ReachVisuallyHidden",
"@reach/utils": "ReachUtils"
};
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.7.0",
"version": "0.7.1",
"packages": ["packages/*"],
"registry": "https://registry.npmjs.org/",
"publishConfig": {
Expand Down
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"author": "React Training <[email protected]>",
"scripts": {
"start": "start-storybook -p 9001 -c .storybook",
"test": "CI=true tsdx test packages",
"test:watch": "tsdx test packages",
"test:coverage": "CI=true tsdx test packages --coverage",
"build:changed": "lerna run build --parallel --since origin/master",
"build": "lerna run build --parallel",
"test": "cross-env NODE_ENV=test CI=true tsdx test packages",
"test:watch": "cross-env NODE_ENV=test tsdx test packages",
"test:coverage": "cross-env NODE_ENV=test CI=true tsdx test packages --coverage",
"build:changed": "lerna run build --since origin/master",
"build": "lerna run build",
"ver": "lerna version --no-push",
"changes": "dotenv lerna-changelog",
"clean": "git clean -e '!/.env' -e '!/website-deploy-key' -e '!/website-deploy-key.pub' -fdX .",
Expand All @@ -28,13 +28,16 @@
"@testing-library/react": "^9.4.0",
"@types/escape-regexp": "^0.0.0",
"@types/highlight-words-core": "^1.2.0",
"@types/invariant": "^2.2.31",
"@types/jest": "^24.0.25",
"@types/match-sorter": "^2.3.0",
"@types/react": "^16.9.16",
"@types/react-dom": "^16.9.4",
"@types/react-router-dom": "^5.1.3",
"@types/react-test-renderer": "^16.9.1",
"@types/styled-components": "^4.4.1",
"@types/tabbable": "^3.1.0",
"@types/warning": "^3.0.0",
"@typescript-eslint/eslint-plugin": "2.x",
"@typescript-eslint/parser": "2.x",
"awesome-typescript-loader": "^5.2.1",
Expand Down
138 changes: 0 additions & 138 deletions packages/alert-dialog/index.d.ts

This file was deleted.

9 changes: 4 additions & 5 deletions packages/alert-dialog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reach/alert-dialog",
"version": "0.7.0",
"version": "0.7.1",
"description": "Accessible React Alert Dialog.",
"repository": {
"type": "git",
Expand All @@ -10,18 +10,17 @@
"author": "React Training <[email protected]>",
"license": "MIT",
"main": "dist/index.js",
"umd:main": "dist/alert-dialog.umd.production.js",
"module": "dist/alert-dialog.esm.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd"
"build": "cross-env NODE_ENV=production tsdx build --format=cjs,esm"
},
"dependencies": {
"@reach/auto-id": "^0.7.0",
"@reach/dialog": "^0.7.0",
"@reach/auto-id": "^0.7.1",
"@reach/dialog": "^0.7.1",
"@reach/utils": "^0.7.1",
"invariant": "^2.2.4",
"prop-types": "^15.7.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/alert-dialog/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["examples", "src", "types"],
"include": ["examples", "src", "types", "../../types"],
"compilerOptions": {
"baseUrl": "./",
"rootDir": "./",
Expand Down
2 changes: 2 additions & 0 deletions packages/alert-dialog/tsdx.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
let createConfig = require("../../build/createConfig");
module.exports = createConfig();
39 changes: 0 additions & 39 deletions packages/alert/index.d.ts

This file was deleted.

5 changes: 2 additions & 3 deletions packages/alert/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
{
"name": "@reach/alert",
"version": "0.7.0",
"version": "0.7.1",
"description": "Screen-reader-friendly alert messages.",
"repository": {
"type": "git",
"url": "git+https://github.com/reach/reach-ui.git",
"directory": "packages/alert"
},
"main": "dist/index.js",
"umd:main": "dist/alert.umd.production.js",
"module": "dist/alert.esm.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd"
"build": "cross-env NODE_ENV=production tsdx build --format=cjs,esm"
},
"dependencies": {
"@reach/utils": "^0.7.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/alert/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["examples", "src", "types"],
"include": ["examples", "src", "types", "../../types"],
"compilerOptions": {
"baseUrl": "./",
"rootDir": "./",
Expand Down
5 changes: 2 additions & 3 deletions packages/auto-id/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
{
"name": "@reach/auto-id",
"version": "0.7.0",
"version": "0.7.1",
"description": "Autogenerate IDs to facilitate WAI-ARIA and server rendering.",
"repository": {
"type": "git",
"url": "git+https://github.com/reach/reach-ui.git",
"directory": "packages/auto-id"
},
"main": "dist/index.js",
"umd:main": "dist/auto-id.umd.production.js",
"module": "dist/auto-id.esm.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd"
"build": "cross-env NODE_ENV=production tsdx build --format=cjs,esm"
},
"peerDependencies": {
"react": "^16.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/auto-id/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src", "types"],
"include": ["src", "types", "../../types"],
"compilerOptions": {
"baseUrl": "./",
"rootDir": "./",
Expand Down
13 changes: 6 additions & 7 deletions packages/combobox/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reach/combobox",
"version": "0.7.0",
"version": "0.7.1",
"description": "Accessible React Combobox (Autocomplete).",
"repository": {
"type": "git",
Expand All @@ -10,23 +10,22 @@
"author": "React Training <[email protected]>",
"license": "MIT",
"main": "dist/index.js",
"umd:main": "dist/combobox.umd.production.js",
"module": "dist/combobox.esm.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
"styles.css"
],
"scripts": {
"build": "cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd"
"build": "cross-env NODE_ENV=production tsdx build --format=cjs,esm"
},
"dependencies": {
"@reach/auto-id": "^0.7.0",
"@reach/popover": "^0.7.0",
"@reach/portal": "^0.7.0",
"@reach/auto-id": "^0.7.1",
"@reach/popover": "^0.7.1",
"@reach/portal": "^0.7.1",
"@reach/utils": "^0.7.1",
"escape-regexp": "0.0.1",
"highlight-words-core": "1.2.0",
"highlight-words-core": "1.2.2",
"prop-types": "^15.7.2"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/combobox/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["examples", "src", "types"],
"include": ["examples", "src", "types", "../../types"],
"compilerOptions": {
"baseUrl": "./",
"paths": {
Expand Down
Loading

0 comments on commit 1ccb774

Please sign in to comment.