Skip to content

Commit

Permalink
Upgrade build and dev dependencies (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronccasanova committed Jan 14, 2024
1 parent f0692f5 commit dbdae1d
Show file tree
Hide file tree
Showing 121 changed files with 17,916 additions and 9,167 deletions.
5 changes: 3 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
packages/prompt-utils/src/text-transforms/change-case.ts
packages/prompt-utils/src/text-transforms/title-case.ts
/packages/prompt-utils/src/text-transforms/change-case.ts
/packages/prompt-utils/src/text-transforms/title-case.ts
/templates
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Casa for my packages, projects, and experiments.
npm i
```

> Note: Re-run the above command if you add or remove internal dependencies to ensure all
> symlinks are up to date.
> Note: Re-run the above command if you add or remove internal dependencies to
> ensure all symlinks are up to date.
- Build all projects

Expand All @@ -25,7 +25,8 @@ npm run build
npm run build -- --filter=<package-json-name>
```

> See the Turborepo docs for more info on the [--filter syntax](https://turborepo.org/docs/core-concepts/filtering#filter-syntax)
> See the Turborepo docs for more info on the
> [--filter syntax](https://turborepo.org/docs/core-concepts/filtering#filter-syntax)
## Local development

Expand Down
6 changes: 3 additions & 3 deletions apps/scales/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"@aacc/tsconfigs": "*",
"@types/node": "^18.0.0",
"@types/react": "^17.0.0",
"eslint": "^8.42.0",
"eslint-config-next": "12.3.4",
"typescript": "^4.7.3"
"eslint": "^8.56.0",
"eslint-config-next": "^14.0.4",
"typescript": "~5.3.3"
}
}
2 changes: 1 addition & 1 deletion apps/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"i-esm": "node test-implicit-esm.js",
"build": "echo building @aacc/test-app",
"start": "npm run i-esm",
"lint": "TIMING=1 eslint . --ext .js,.cjs,.mjs --cache"
"lint": "TIMING=1 eslint . --ext .js,.jsx,.ts,.tsx,.cjs,.mjs --cache"
},
"keywords": [],
"author": "Aaron Casanova",
Expand Down
14 changes: 7 additions & 7 deletions hooks/use-listener/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "use-listener",
"version": "0.2.0",
"version": "0.3.0",
"description": "",
"author": "Aaron Casanova <aaronccasanova@gmail.com>",
"license": "MIT",
Expand All @@ -22,7 +22,7 @@
"build:types": "tsc --emitDeclarationOnly",
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"lint": "TIMING=1 eslint . --ext .js,.ts --cache",
"lint": "TIMING=1 eslint . --ext .js,.jsx,.ts,.tsx,.cjs,.mjs --cache",
"prepublishOnly": "npm run build"
},
"files": [
Expand All @@ -37,13 +37,13 @@
"@aacc/browserslist-config": "*",
"@aacc/eslint-config": "*",
"@aacc/tsconfigs": "*",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.1.0",
"@rollup/plugin-node-resolve": "^13.2.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/react": "^17.0.0",
"react": "^17.0.0",
"rollup": "^2.70.2",
"typescript": "^4.7.3"
"rollup": "^4.9.4",
"typescript": "~5.3.3"
},
"browserslist": [
"extends @aacc/browserslist-config"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import path from 'path'
import * as fs from 'node:fs'
import * as path from 'node:path'

/* eslint-disable import/no-extraneous-dependencies */
import nodeResolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import babel from '@rollup/plugin-babel'
/* eslint-enable import/no-extraneous-dependencies */

import pkg from './package.json'
/**
* @type {import('./package.json')}
*/
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const pkg = JSON.parse(
await fs.promises.readFile(
new URL('./package.json', import.meta.url),
'utf-8',
),
)

const name = 'useListener'

Expand All @@ -18,13 +30,13 @@ export default {
output: [
{
format: /** @type {const} */ ('cjs'),
entryFileNames: '[name][assetExtname].js',
entryFileNames: '[name].js',
dir: path.dirname(pkg.main),
preserveModules: true,
},
{
format: /** @type {const} */ ('es'),
entryFileNames: '[name][assetExtname].mjs',
entryFileNames: '[name].mjs',
dir: path.dirname(pkg.module),
preserveModules: true,
},
Expand Down
4 changes: 2 additions & 2 deletions hooks/use-listener/src/use-listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ type ExtractTargetElement<Target> = Target extends React.RefObject<
type ExtractEventMap<Target> = ExtractTargetElement<Target> extends Window
? WindowEventMap
: ExtractTargetElement<Target> extends Document
? DocumentEventMap
: HTMLElementEventMap
? DocumentEventMap
: HTMLElementEventMap

/**
* Extracts all event names for a given target element.
Expand Down
2 changes: 1 addition & 1 deletion hooks/use-listener/tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
// Paths to lint
"src",
".eslintrc.js",
"rollup.config.js"
"rollup.config.mjs"
]
}
14 changes: 7 additions & 7 deletions hooks/use-notification/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "use-notification",
"version": "0.2.3",
"version": "0.3.0",
"description": "",
"author": "Aaron Casanova <aaronccasanova@gmail.com>",
"license": "MIT",
Expand All @@ -21,7 +21,7 @@
"build:types": "tsc --emitDeclarationOnly",
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"lint": "TIMING=1 eslint . --ext .js,.ts --cache",
"lint": "TIMING=1 eslint . --ext .js,.jsx,.ts,.tsx,.cjs,.mjs --cache",
"prepublishOnly": "npm run build"
},
"files": [
Expand All @@ -36,13 +36,13 @@
"@aacc/browserslist-config": "*",
"@aacc/eslint-config": "*",
"@aacc/tsconfigs": "*",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.1.0",
"@rollup/plugin-node-resolve": "^13.2.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/react": "^17.0.0",
"react": "^17.0.0",
"rollup": "^2.70.2",
"typescript": "^4.7.3"
"rollup": "^4.9.4",
"typescript": "~5.3.3"
},
"browserslist": [
"extends @aacc/browserslist-config"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import path from 'path'
import * as fs from 'node:fs'
import * as path from 'node:path'

/* eslint-disable import/no-extraneous-dependencies */
import nodeResolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import babel from '@rollup/plugin-babel'
/* eslint-enable import/no-extraneous-dependencies */

import pkg from './package.json'
/**
* @type {import('./package.json')}
*/
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const pkg = JSON.parse(
await fs.promises.readFile(
new URL('./package.json', import.meta.url),
'utf-8',
),
)

const extensions = ['.js', '.jsx', '.ts', '.tsx']

Expand All @@ -16,13 +28,13 @@ export default {
output: [
{
format: /** @type {const} */ ('cjs'),
entryFileNames: '[name][assetExtname].js',
entryFileNames: '[name].js',
dir: path.dirname(pkg.main),
preserveModules: true,
},
{
format: /** @type {const} */ ('es'),
entryFileNames: '[name][assetExtname].mjs',
entryFileNames: '[name].mjs',
dir: path.dirname(pkg.module),
preserveModules: true,
},
Expand Down
2 changes: 1 addition & 1 deletion hooks/use-notification/tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
// Paths to lint
"src",
".eslintrc.js",
"rollup.config.js"
"rollup.config.mjs"
]
}
14 changes: 7 additions & 7 deletions hooks/use-portal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "use-portal",
"version": "0.3.0",
"version": "0.4.0",
"description": "",
"author": "Aaron Casanova <aaronccasanova@gmail.com>",
"license": "MIT",
Expand All @@ -21,7 +21,7 @@
"build:types": "tsc --emitDeclarationOnly",
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"lint": "TIMING=1 eslint . --ext .js,.ts --cache",
"lint": "TIMING=1 eslint . --ext .js,.jsx,.ts,.tsx,.cjs,.mjs --cache",
"prepublishOnly": "npm run build"
},
"files": [
Expand All @@ -37,14 +37,14 @@
"@aacc/browserslist-config": "*",
"@aacc/eslint-config": "*",
"@aacc/tsconfigs": "*",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.1.0",
"@rollup/plugin-node-resolve": "^13.2.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"react": "^17.0.0",
"rollup": "^2.70.2",
"typescript": "^4.7.3"
"rollup": "^4.9.4",
"typescript": "~5.3.3"
},
"browserslist": [
"extends @aacc/browserslist-config"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import path from 'path'
import * as fs from 'node:fs'
import * as path from 'node:path'

/* eslint-disable import/no-extraneous-dependencies */
import nodeResolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import babel from '@rollup/plugin-babel'
/* eslint-enable import/no-extraneous-dependencies */

import pkg from './package.json'
/**
* @type {import('./package.json')}
*/
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const pkg = JSON.parse(
await fs.promises.readFile(
new URL('./package.json', import.meta.url),
'utf-8',
),
)

const extensions = ['.js', '.jsx', '.ts', '.tsx']

Expand All @@ -16,13 +28,13 @@ export default {
output: [
{
format: /** @type {const} */ ('cjs'),
entryFileNames: '[name][assetExtname].js',
entryFileNames: '[name].js',
dir: path.dirname(pkg.main),
preserveModules: true,
},
{
format: /** @type {const} */ ('es'),
entryFileNames: '[name][assetExtname].mjs',
entryFileNames: '[name].mjs',
dir: path.dirname(pkg.module),
preserveModules: true,
},
Expand Down
2 changes: 1 addition & 1 deletion hooks/use-portal/tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
// Paths to lint
"src",
".eslintrc.js",
"rollup.config.js"
"rollup.config.mjs"
]
}
14 changes: 7 additions & 7 deletions hooks/use-websocket/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "use-websocket",
"version": "0.1.2",
"version": "0.2.0",
"description": "Base abstraction for using WebSockets in React",
"author": "Aaron Casanova <aaronccasanova@gmail.com>",
"license": "MIT",
Expand All @@ -22,7 +22,7 @@
"build:types": "tsc --emitDeclarationOnly",
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"lint": "TIMING=1 eslint . --ext .js,.ts --cache",
"lint": "TIMING=1 eslint . --ext .js,.jsx,.ts,.tsx,.cjs,.mjs --cache",
"prepublishOnly": "npm run build"
},
"files": [
Expand All @@ -37,13 +37,13 @@
"@aacc/browserslist-config": "*",
"@aacc/eslint-config": "*",
"@aacc/tsconfigs": "*",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.1.0",
"@rollup/plugin-node-resolve": "^13.2.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/react": "^17.0.0",
"react": "^17.0.0",
"rollup": "^2.70.2",
"typescript": "^4.7.3"
"rollup": "^4.9.4",
"typescript": "~5.3.3"
},
"browserslist": [
"extends @aacc/browserslist-config"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import path from 'path'
import * as fs from 'node:fs'
import * as path from 'node:path'

/* eslint-disable import/no-extraneous-dependencies */
import nodeResolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import babel from '@rollup/plugin-babel'
/* eslint-enable import/no-extraneous-dependencies */

import pkg from './package.json'
/**
* @type {import('./package.json')}
*/
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const pkg = JSON.parse(
await fs.promises.readFile(
new URL('./package.json', import.meta.url),
'utf-8',
),
)

const name = 'useWebSocket'

Expand All @@ -18,13 +30,13 @@ export default {
output: [
{
format: /** @type {const} */ ('cjs'),
entryFileNames: '[name][assetExtname].js',
entryFileNames: '[name].js',
dir: path.dirname(pkg.main),
preserveModules: true,
},
{
format: /** @type {const} */ ('es'),
entryFileNames: '[name][assetExtname].mjs',
entryFileNames: '[name].mjs',
dir: path.dirname(pkg.module),
preserveModules: true,
},
Expand Down

3 comments on commit dbdae1d

@vercel
Copy link

@vercel vercel bot commented on dbdae1d Jan 14, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

aacc-scales – ./apps/scales

aacc-scales-aaronccasanova.vercel.app
aacc-scales-git-main-aaronccasanova.vercel.app
aacc-scales.vercel.app

@vercel
Copy link

@vercel vercel bot commented on dbdae1d Jan 14, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

aacc-next-ts-styled-comps – ./recipes/next-ts-styled-comps

aacc-next-ts-styled-comps.vercel.app
aacc-next-ts-styled-comps-git-main-aaronccasanova.vercel.app
aacc-next-ts-styled-comps-aaronccasanova.vercel.app

@vercel
Copy link

@vercel vercel bot commented on dbdae1d Jan 14, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

aacc-next-ts – ./recipes/next-ts

aacc-next-ts.vercel.app
aacc-next-ts-aaronccasanova.vercel.app
aacc-next-ts-git-main-aaronccasanova.vercel.app

Please sign in to comment.