This commit is contained in:
kyranjamie
2021-08-20 11:02:40 +01:00
parent 05549353d1
commit b0f2b6d267
7 changed files with 1379 additions and 1856 deletions

View File

@@ -34,8 +34,6 @@ jobs:
- name: Install monorepo deps
run: yarn --frozen-lockfile
- run: yarn build:connect
- name: Setup .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@@ -58,10 +58,13 @@ jobs:
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Set Node Version
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v2
with:
node-version: 12.16.1
- name: Restore lerna cache
uses: actions/cache@v2
with:
@@ -69,29 +72,37 @@ jobs:
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install monorepo deps
run: yarn --frozen-lockfile
- name: Bootstrap
run: yarn lerna bootstrap
- name: Setup .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- name: Get git branch
id: git-branch
run: echo "::set-output name=branch::$(git rev-parse --abbrev-ref HEAD | cut -d'/' -f2 )"
- name: Get git commit
id: git-commit
run: echo "::set-output name=sha::$(git rev-parse --short HEAD)"
- name: print preid
env:
BRANCH: ${{ steps.git-branch.outputs.branch }}
SHA: ${{ steps.git-commit.outputs.sha }}
run: echo $BRANCH.$SHA
- name: Setup git
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Publish to NPM
env:
BRANCH: ${{ steps.git-branch.outputs.branch }}

View File

@@ -52,7 +52,7 @@
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": "^5.1.3",
"lerna": "^3.22.1",
"lerna": "4.0.0",
"patch-package": "^6.4.7",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.2.1",

View File

@@ -2,7 +2,7 @@
"name": "@stacks/connect-react",
"version": "11.0.0",
"scripts": {
"build": "yarn build:modules && yarn types",
"build": "yarn types && yarn build:modules",
"build:modules": "tsdx build --format cjs,esm,umd",
"types": "tsc --project tsconfig.json --emitDeclarationOnly",
"dev": "cd ../test-app && yarn start",
@@ -31,14 +31,14 @@
"dependencies": {
"@stacks/auth": "2.0.1",
"@stacks/connect": "6.0.0",
"esbuild": "^0.9.3",
"jsontokens": "^3.0.0",
"rollup-plugin-esbuild": "^3.0.2"
"jsontokens": "^3.0.0"
},
"devDependencies": {
"@babel/helper-validator-identifier": "^7.12.11",
"@babel/plugin-proposal-optional-chaining": "^7.13.8",
"@babel/preset-react": "^7.12.13",
"rollup-plugin-esbuild": "^3.0.2",
"esbuild": "^0.9.3",
"@babel/preset-typescript": "^7.13.0",
"@types/jest": "^26.0.21",
"@types/react-dom": "^17.0.2",

View File

@@ -4,7 +4,10 @@
"allowUnreachableCode": false,
"declaration": false,
"experimentalDecorators": true,
"lib": ["dom", "es2017"],
"lib": [
"dom",
"es2017"
],
"moduleResolution": "node",
"module": "esnext",
"target": "es2017",
@@ -12,19 +15,21 @@
"noUnusedParameters": true,
"jsx": "react",
"jsxFactory": "h",
"typeRoots": ["node_modules/@types", "../connect/src/types"],
"typeRoots": [
"node_modules/@types",
"../connect/src/types"
],
"skipLibCheck": true,
"baseUrl": "./",
"resolveJsonModule": true,
"paths": {
"@stacks/connect/*": ["../connect/src/*"]
"@stacks/connect/*": ["../connect/src/*"],
}
},
"include": ["src"],
"exclude": ["node_modules"],
"references": [
{
"path": "../connect"
}
"include": [
"src"
],
"exclude": [
"node_modules"
]
}

View File

@@ -22,19 +22,18 @@
"typings": "dist/types/index.d.ts",
"unpkg": "dist/bundle.js",
"dependencies": {
"@rollup/plugin-replace": "^2.4.1",
"@stacks/auth": "2.0.1",
"@stacks/connect-ui": "5.1.5",
"@stacks/connect-ui": "5.1.6",
"@stacks/network": "2.0.1",
"@stacks/transactions": "2.0.1",
"bn.js": "^5.2.0",
"buffer": "6.0.3",
"jsontokens": "^3.0.0",
"readable-stream": "^3.6.0",
"rollup": "^2.41.4",
"url": "^0.11.0"
},
"devDependencies": {
"rollup": "^2.41.4",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-regenerator": "^7.4.5",
@@ -42,6 +41,8 @@
"@babel/preset-react": "^7.12.13",
"@babel/preset-typescript": "^7.13.0",
"@babel/runtime": "^7.9.2",
"@stacks/prettier-config": "^0.0.8",
"@rollup/plugin-replace": "^2.4.1",
"concurrently": "^6.0.0",
"crypto-browserify": "^3.12.0",
"esbuild": "^0.9.3",

3180
yarn.lock

File diff suppressed because it is too large Load Diff