Skip to content

Commit 3acaef9

Browse files
committed
refactor(command-utils,cz-lerna-changelog): upgrade dependencies
Just small deps, TS in this commit
1 parent 3bd4c99 commit 3acaef9

File tree

11 files changed

+1065
-1041
lines changed

11 files changed

+1065
-1041
lines changed

package-lock.json

Lines changed: 1030 additions & 981 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,11 @@
6161
},
6262
"devDependencies": {
6363
"@babel/cli": "^7.25.6",
64-
"@commitlint/cli": "^19.5.0",
65-
"@commitlint/config-conventional": "^19.5.0",
66-
"@emotion/cache": "^11.13.1",
67-
"@emotion/react": "^11.13.3",
68-
"@eslint/eslintrc": "^3.1.0",
69-
"@eslint/js": "^9.11.1",
64+
"@commitlint/cli": "^19.6.0",
65+
"@commitlint/config-conventional": "^19.6.0",
66+
"@emotion/cache": "^11.14.0",
67+
"@emotion/react": "^11.14.0",
68+
"@eslint/js": "^9.16.0",
7069
"@instructure/browserslist-config-instui": "workspace:*",
7170
"@instructure/pkg-utils": "workspace:*",
7271
"@testing-library/dom": "^10.4.0",
@@ -75,33 +74,33 @@
7574
"@testing-library/user-event": "^14.5.2",
7675
"@types/eslint__js": "^8.42.3",
7776
"@types/react-dom": "^18.3.0",
78-
"@vitejs/plugin-react": "^4.3.2",
79-
"@vitest/eslint-plugin": "^1.1.4",
77+
"@vitejs/plugin-react": "^4.3.4",
78+
"@vitest/eslint-plugin": "^1.1.14",
8079
"chai": "^4.4.1",
8180
"chalk": "^4.1.2",
8281
"commitizen": "^4.3.1",
83-
"cross-spawn": "^7.0.3",
84-
"cypress": "^13.15.0",
82+
"cross-spawn": "^7.0.6",
83+
"cypress": "^13.16.1",
8584
"cypress-real-events": "^1.13.0",
8685
"esbuild": "^0.24.0",
87-
"eslint": "^9.11.1",
86+
"eslint": "^9.16.0",
8887
"eslint-config-prettier": "^9.1.0",
8988
"eslint-import-resolver-node": "^0.3.9",
9089
"eslint-module-utils": "^2.12.0",
9190
"eslint-plugin-compat": "^6.0.1",
92-
"eslint-plugin-jsx-a11y": "^6.10.0",
91+
"eslint-plugin-jsx-a11y": "^6.10.2",
9392
"eslint-plugin-notice": "^1.0.0",
94-
"eslint-plugin-react": "^7.37.0",
95-
"globals": "^15.9.0",
96-
"husky": "^9.1.6",
97-
"lerna": "^8.1.8",
93+
"eslint-plugin-react": "^7.37.2",
94+
"globals": "^15.13.0",
95+
"husky": "^9.1.7",
96+
"lerna": "^8.1.9",
9897
"lint-staged": "^15.2.10",
9998
"react": "^18.3.1",
10099
"tar": "^7.4.3",
101-
"typescript": "5.6.2",
102-
"typescript-eslint": "^8.8.0",
100+
"typescript": "5.7.2",
101+
"typescript-eslint": "^8.18.0",
103102
"vitest": "^2.1.1",
104-
"webpack": "^5.95.0"
103+
"webpack": "^5.97.1"
105104
},
106105
"//dependency-comments": {
107106
"danger": "^11.3.1 -- add this back if we use it in pr-validation.yml",

packages/__examples__/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"prop-types": "^15.8.1",
4949
"react-docgen": "7.0.3",
5050
"storybook": "^7.6.19",
51-
"webpack": "^5.95.0"
51+
"webpack": "^5.97.1"
5252
},
5353
"resolutions": {
5454
"@storybook/react/webpack": "^5"

packages/command-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"license": "MIT",
2323
"dependencies": {
2424
"chalk": "^5.3.0",
25-
"cross-spawn": "^7.0.3",
25+
"cross-spawn": "^7.0.6",
2626
"which": "^4.0.0"
2727
},
2828
"publishConfig": {

packages/cz-lerna-changelog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@instructure/pkg-utils": "10.8.0",
2626
"@semantic-release/commit-analyzer": "^9.0.2",
2727
"chalk": "^4.1.2",
28-
"cz-customizable": "^6.9.2",
28+
"cz-customizable": "^7.3.0",
2929
"inquirer": "^8.2.6"
3030
},
3131
"devDependencies": {

packages/pkg-utils/lib/get-package.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ exports.getPackage = function getPackage(options) {
3232
return new Package(result.packageJson, path.dirname(result.path))
3333
}
3434

35+
/**
36+
* Reads a package.json
37+
* @param options {readPkgUp.NormalizeOptions}
38+
* @returns {readPkgUp.NormalizedPackageJson}
39+
*/
3540
exports.getPackageJSON = function getPackageJSON(options) {
3641
return readPackage(options).packageJson
3742
}

packages/pkg-utils/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"bugs": "https://github.com/instructure/instructure-ui/issues",
1414
"scripts": {
1515
"lint": "ui-scripts lint",
16-
"lint:fix": "ui-scripts lint --fix"
16+
"lint:fix": "ui-scripts lint --fix",
17+
"ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
1718
},
1819
"license": "MIT",
1920
"dependencies": {

packages/ui-scripts/lib/icons/generate-icon-fonts.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ export default function generateIconFonts({
4141
name
4242
}) {
4343
generateFonts({ ...config, inputDir, outputDir, prefix, name })
44-
.then((result) => {
45-
// eslint-disable-next-line no-console
46-
console.log('Icon font generated:', result)
44+
.then((_result) => {
45+
//console.log('Icon font generated:', result)
4746
})
4847
.catch((error) => {
4948
console.error('Error generating icon font:', error)

packages/ui-scripts/lib/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727
import yargs from 'yargs'
2828
import { yargCommands } from './commands/index.js'
2929
import { hideBin } from 'yargs/helpers'
30-
import { readEnv } from './utils/readEnv.js'
30+
import { findUpSync } from 'find-up'
31+
import { config } from 'dotenv'
3132

32-
readEnv()
33+
config({ path: findUpSync('.env') || process.cwd() })
3334

3435
// https://github.com/yargs/yargs/blob/main/docs/advanced.md#example-command-hierarchy-using-indexmjs
3536
yargs(hideBin(process.argv)).strictOptions(true).command(yargCommands).argv

packages/ui-scripts/lib/utils/readEnv.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)