Skip to content

Commit

Permalink
fix: update components to include 'types' and 'ts:main' package keys
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceosterhaus committed Jun 18, 2019
1 parent 73775f0 commit 9e24b59
Show file tree
Hide file tree
Showing 29 changed files with 123 additions and 75 deletions.
4 changes: 2 additions & 2 deletions packages/clay-alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.js",
"jsnext:main": "src/index.js",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-autocomplete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
18 changes: 13 additions & 5 deletions packages/clay-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,30 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"files": ["lib", "src"],
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
],
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"build:types": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "npm run build && npm run build:types",
"test": "jest --config ../../jest.config.js"
},
"keywords": ["clay", "react"],
"keywords": [
"clay",
"react"
],
"dependencies": {
"classnames": "^2.2.6"
},
"peerDependencies": {
"react": "^16.8.1",
"react-dom": "^16.8.1"
},
"browserslist": ["extends browserslist-config-clay"]
"browserslist": [
"extends browserslist-config-clay"
]
}
2 changes: 1 addition & 1 deletion packages/clay-charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "React.js wrapper for D3 and billboard.js",
"private": true,
"main": "lib/index.js",
"jsnext:main": "src/index.tsx",
"ts:main": "src/index.tsx",
"scripts": {
"build": "npm run sass && npm run compile && npm run copySvg",
"compile": "./node_modules/.bin/babel -d lib/ src/ -s --ignore src/__tests__",
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-color-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.js",
"jsnext:main": "src/index.js",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-data-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-date-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"license": "BSD-3-Clause",
"repository": "https://github.com/liferay/clay/tree/master/packages/clay-date-picker",
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-drop-down/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
18 changes: 13 additions & 5 deletions packages/clay-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,30 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"files": ["lib", "src"],
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
],
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"build:types": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "npm run build && npm run build:types",
"test": "jest --config ../../jest.config.js"
},
"keywords": ["clay", "react"],
"keywords": [
"clay",
"react"
],
"dependencies": {
"classnames": "^2.2.6"
},
"peerDependencies": {
"react": "^16.8.1",
"react-dom": "^16.8.1"
},
"browserslist": ["extends browserslist-config-clay"]
"browserslist": [
"extends browserslist-config-clay"
]
}
4 changes: 2 additions & 2 deletions packages/clay-icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-label/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-loading-indicator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
18 changes: 13 additions & 5 deletions packages/clay-modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,22 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"files": ["lib", "src"],
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
],
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"build:types": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "npm run build && npm run build:types",
"test": "jest --config ../../jest.config.js"
},
"keywords": ["clay", "react"],
"keywords": [
"clay",
"react"
],
"dependencies": {
"@clayui/button": "^3.0.0",
"@clayui/icon": "^3.0.0",
Expand All @@ -29,5 +35,7 @@
"react": "^16.8.1",
"react-dom": "^16.8.1"
},
"browserslist": ["extends browserslist-config-clay"]
"browserslist": [
"extends browserslist-config-clay"
]
}
4 changes: 2 additions & 2 deletions packages/clay-navigation-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.js",
"jsnext:main": "src/index.js",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
18 changes: 13 additions & 5 deletions packages/clay-pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,22 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"files": ["lib", "src"],
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
],
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"build:types": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "npm run build && npm run build:types",
"test": "jest --config ../../jest.config.js"
},
"keywords": ["clay", "react"],
"keywords": [
"clay",
"react"
],
"dependencies": {
"@clayui/button": "^3.0.0",
"@clayui/drop-down": "^3.0.0",
Expand All @@ -29,5 +35,7 @@
"react": "^16.8.1",
"react-dom": "^16.8.1"
},
"browserslist": ["extends browserslist-config-clay"]
"browserslist": [
"extends browserslist-config-clay"
]
}
4 changes: 2 additions & 2 deletions packages/clay-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-progress-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-radio-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
Expand Down
18 changes: 13 additions & 5 deletions packages/clay-select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,30 @@
"npm": ">=3.0.0"
},
"main": "lib/index.js",
"module": "src/index.tsx",
"jsnext:main": "src/index.tsx",
"files": ["lib", "src"],
"types": "lib/index.d.ts",
"ts:main": "src/index.tsx",
"files": [
"lib",
"src"
],
"scripts": {
"build": "cross-env NODE_ENV=production babel src --root-mode upward --out-dir lib --extensions .ts,.tsx",
"build:types": "cross-env NODE_ENV=production tsc --project ./tsconfig.declarations.json",
"prepublishOnly": "npm run build && npm run build:types",
"test": "jest --config ../../jest.config.js"
},
"keywords": ["clay", "react"],
"keywords": [
"clay",
"react"
],
"dependencies": {
"classnames": "^2.2.6"
},
"peerDependencies": {
"react": "^16.8.1",
"react-dom": "^16.8.1"
},
"browserslist": ["extends browserslist-config-clay"]
"browserslist": [
"extends browserslist-config-clay"
]
}
Loading

0 comments on commit 9e24b59

Please sign in to comment.