Skip to content

Commit

Permalink
Upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit Dhamu committed May 18, 2022
1 parent 19e0f1c commit 18e5057
Show file tree
Hide file tree
Showing 7 changed files with 1,459 additions and 1,156 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
dist
.coverage
esbuild
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": ["./node_modules/@adhamu/zero/eslint/typescript-react"],
"overrides": [
{
"files": ["./esbuild/**/*.js", "./setupTests.ts"],
"files": ["./setupTests.ts"],
"rules": {
"import/no-extraneous-dependencies": [
"error",
Expand Down
25 changes: 12 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: CI

on: push
on:
push:
branches:
- "*"
tags-ignore:
- "*"

jobs:
pipeline:
Expand All @@ -12,7 +17,8 @@ jobs:
- name: Set Environment Variables
run: |
echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
echo ::set-output name=PACKAGE_VERSION::$(cat package.json | jq -r '.version')
echo ::set-output name=CURRENT_VERSION::$(cat package.json | jq -r '.version')
echo ::set-output name=PUBLISHED_VERSION::$(npm view react-input-suggestions version)
echo ::set-output name=BRANCH::${GITHUB_REF##*/}
id: env_vars

Expand Down Expand Up @@ -62,28 +68,21 @@ jobs:
branch: gh-pages
folder: public

- name: Changelog
if: github.ref == 'refs/heads/main'
uses: Bullrich/generate-release-changelog@master
id: changelog
env:
REPO: ${{ github.repository }}

- name: Create Release
if: github.ref == 'refs/heads/main'
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.env_vars.outputs.PACKAGE_VERSION }}
release_name: ${{ steps.env_vars.outputs.PACKAGE_VERSION }}
body: ${{ steps.changelog.outputs.changelog }}
tag_name: ${{ steps.env_vars.outputs.CURRENT_VERSION }}
release_name: ${{ steps.env_vars.outputs.CURRENT_VERSION }}
body: "**Full Changelog**: https://github.com/adhamu/react-input-suggestions/compare/${{ steps.env_vars.outputs.PUBLISHED_VERSION }}...${{ steps.env_vars.outputs.CURRENT_VERSION }}"
draft: false
prerelease: false

- name: Publish to Registry
run: |
pkg_version=${{ steps.env_vars.outputs.PACKAGE_VERSION }}
pkg_version=${{ steps.env_vars.outputs.CURRENT_VERSION }}
branch=${{ steps.env_vars.outputs.BRANCH }}
if [[ $branch != "main" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
'@adhamu/zero/prettier'
"@adhamu/zero/prettier"
5 changes: 2 additions & 3 deletions esbuild.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
const path = require('path')

const { arge } = require('arge')
const chokidar = require('chokidar')
const esbuild = require('esbuild')
const liveServer = require('live-server')

const root = './public'

const build = process.argv[2] === 'build' || false
const dev = process.argv[2] === 'dev' || false
const watch = (dev && process.argv[3] === '--watch') || false
const { build = false, dev = false, watch = false } = arge(process.argv)

const common = {
bundle: true,
Expand Down
42 changes: 22 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-input-suggestions",
"version": "2.0.1",
"version": "2.2.0",
"description": "A React input component with pluggable suggestions and autocomplete",
"keywords": [
"react",
Expand Down Expand Up @@ -41,32 +41,34 @@
"dependencies": {
"@emotion/react": "^11.8.2",
"@emotion/styled": "^11.8.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-string-replace": "^1.0.0"
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-string-replace": "^1.1.0"
},
"devDependencies": {
"@adhamu/zero": "^4.1.1",
"@adhamu/zero": "^4.3.1",
"@emotion/jest": "^11.8.0",
"@stylelint/postcss-css-in-js": "^0.37.2",
"@swc/core": "^1.2.171",
"@swc/jest": "^0.2.20",
"@stylelint/postcss-css-in-js": "^0.38.0",
"@swc/core": "^1.2.186",
"@swc/jest": "^0.2.21",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.1.1",
"@testing-library/user-event": "^14.1.1",
"@types/jest": "^27.4.1",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.1",
"@testing-library/react": "^13.2.0",
"@testing-library/user-event": "^14.2.0",
"@types/jest": "^27.5.1",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.4",
"arge": "^1.1.4",
"chokidar": "^3.5.3",
"esbuild": "^0.14.36",
"gh-pages": "^3.2.3",
"jest": "^27.5.1",
"live-server": "^1.2.1",
"esbuild": "^0.14.39",
"gh-pages": "^4.0.0",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
"live-server": "^1.2.2",
"postcss-syntax": "^0.36.2",
"typescript": "^4.6.3"
"typescript": "^4.6.4"
},
"peerDependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "^18.1.0",
"react-dom": "^18.1.0"
}
}
Loading

0 comments on commit 18e5057

Please sign in to comment.