Skip to content

Commit

Permalink
fix(pkg): correct package deps, names and publish accesses
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Sep 8, 2019
1 parent c1f9847 commit 6ff43c8
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 302 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ before_install:
- git config --global user.name 'JounQin'
- git config --global user.email 'admin@1stg.me'

install: yarn --frozen-lockfile
install:
- yarn --frozen-lockfile
- yarn lerna bootstrap

script:
- yarn build
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@
"type-coverage": "^2.2.0",
"typescript": "^3.6.2"
},
"babel": {
"presets": [
"@1stg"
]
},
"browserslist": [
"extends @1stg/browserslist-config"
],
Expand All @@ -113,6 +108,9 @@
"renovate": {
"extends": "@1stg"
},
"resolutions": {
"@babel/core": "^7.6.0"
},
"stylelint": {
"extends": "@1stg/stylelint-config/scss"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-qrcode/docs/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
QRCodeProps,
QRCodeSegment,
TYPES,
} from '@1stg/react-qrcode'
} from '@rxts/react-qrcode'
import { get, merge, set } from 'lodash-es'
import React, { useState } from 'react'

Expand Down
17 changes: 11 additions & 6 deletions packages/react-qrcode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@1stg/react-qrcode",
"version": "0.1.0",
"name": "@rxts/react-qrcode",
"version": "0.0.0",
"description": "🤳 A React component for QR code generation with `qrcode`",
"repository": "git@github.com:rx-ts/react.git",
"author": "JounQin <admin@1stg.me>",
Expand All @@ -17,12 +17,17 @@
"lib",
"src"
],
"keywords": [
"react-qrcode",
"qrcode",
"react"
],
"peerDependencies": {
"qrcode": ">=1.0.0",
"react": ">=16.8.0"
},
"sideEffects": false,
"devDependencies": {
"@babel/core": "^7.6.0"
}
"publishConfig": {
"access": "public"
},
"sideEffects": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ export const QRCode: React.FC<QRCodeProps> = ({
version,
width,
...props
}) => (
<img
{...props}
src={useQRCode({
}) =>
React.createElement('img', {
...props,
src: useQRCode({
color,
errorCorrectionLevel,
margin,
Expand All @@ -34,6 +34,5 @@ export const QRCode: React.FC<QRCodeProps> = ({
value,
version,
width,
})}
/>
)
}),
})
17 changes: 9 additions & 8 deletions packages/react-qrious/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@
"qrious.d.ts",
"typings.d.ts"
],
"keywords": [
"react-qrcode",
"react-qrious",
"qrcode",
"qrious",
"react"
],
"peerDependencies": {
"qrious": "^4.0.0",
"qrious": ">=4.0.0",
"react": ">=16.8.0"
},
"sideEffects": false,
"devDependencies": {
"@babel/core": "^7.6.0"
},
"dependencies": {
"packages": "^0.0.8"
}
"sideEffects": false
}
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/react-rx/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
</head>
<body>
<div id="app"></div>
<script src="index.tsx"></script>
<script src="./index.tsx"></script>
</body>
</html>
8 changes: 4 additions & 4 deletions packages/react-rx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"react": ">=16.8.0",
"rxjs": "^6.0.0"
},
"sideEffects": false,
"devDependencies": {
"@babel/core": "^7.6.0"
}
"publishConfig": {
"access": "public"
},
"sideEffects": false
}
5 changes: 4 additions & 1 deletion packages/react-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
"src"
],
"peerDependencies": {
"react": "^16.8.0"
"react": ">=16.8.0"
},
"publishConfig": {
"access": "public"
},
"sideEffects": false
}
5 changes: 4 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "./node_modules/@1stg/tsconfig/tsconfig.json"
"extends": "./node_modules/@1stg/tsconfig/tsconfig.json",
"compilerOptions": {
"jsx": "react"
}
}
Loading

1 comment on commit 6ff43c8

@vercel
Copy link

@vercel vercel bot commented on 6ff43c8 Sep 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.