Skip to content

Commit 5d7afb5

Browse files
authored
chore: hourcekeeping, bump all (dev) deps (#378)
1 parent ccd49dc commit 5d7afb5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+19897
-14052
lines changed

.changeset/tame-dolphins-swim.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@pkgr/browser": patch
3+
"@pkgr/core": patch
4+
"@pkgr/es-modules": patch
5+
"@pkgr/imagemin": patch
6+
"@pkgr/rollup": patch
7+
---
8+
9+
chore: hourcekeeping, bump all (dev) deps, replace `fast-glob` with `tinyglobby`

.codesandbox/ci.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"node": "18",
3-
"installCommand": "codesandbox:install",
2+
"node": "20",
43
"packages": [
54
"packages/*"
65
],

.editorconfig

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
root = true
1+
root=true
22

33
[*]
4-
indent_style = space
5-
indent_size = 2
6-
tab_width = 2
7-
end_of_line = lf
8-
charset = utf-8
9-
trim_trailing_whitespace = true
10-
insert_final_newline = true
4+
indent_style=space
5+
indent_size=2
6+
tab_width=2
7+
end_of_line=lf
8+
charset=utf-8
9+
trim_trailing_whitespace=true
10+
insert_final_newline=true

.eslintignore

-6
This file was deleted.

.eslintrc

-7
This file was deleted.

.github/workflows/ci.yml

+15-4
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,24 @@ on:
44
- push
55
- pull_request
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
ci:
913
name: Lint and Test with Node.js ${{ matrix.node }} on ${{ matrix.os }}
1014
strategy:
1115
matrix:
1216
node:
13-
- 16
1417
- 18
1518
- 20
19+
- 22
1620
os:
1721
- macos-latest
1822
- ubuntu-latest
1923
- windows-latest
24+
fail-fast: false
2025
runs-on: ${{ matrix.os }}
2126
steps:
2227
- name: Checkout Repo
@@ -29,13 +34,19 @@ jobs:
2934
cache: yarn
3035

3136
- name: Install Dependencies
32-
run: yarn --frozen-lockfile --ignore-engines
37+
run: yarn --immutable
38+
39+
# `@pkgr/utils` is used by `@1stg/eslint-config`
40+
- name: Build
41+
run: yarn build
3342

34-
- name: Build, Lint and Test
43+
- name: Lint and Test
3544
run: yarn run-s lint typecov test
3645
env:
3746
EFF_NO_LINK_RULES: true
3847
PARSER_NO_WATCH: true
3948

4049
- name: Codecov
41-
uses: codecov/codecov-action@v3
50+
uses: codecov/codecov-action@v5
51+
with:
52+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
schedule:
1111
- cron: '4 21 * * 3'
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
analyze:
1519
name: Analyze
@@ -30,15 +34,15 @@ jobs:
3034
uses: actions/checkout@v4
3135

3236
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@v2
37+
uses: github/codeql-action/init@v3
3438
with:
3539
languages: ${{ matrix.language }}
3640
queries: +security-and-quality
3741

3842
- name: Autobuild
39-
uses: github/codeql-action/autobuild@v2
43+
uses: github/codeql-action/autobuild@v3
4044

4145
- name: Perform CodeQL Analysis
42-
uses: github/codeql-action/analyze@v2
46+
uses: github/codeql-action/analyze@v3
4347
with:
4448
category: '/language:${{ matrix.language }}'

.github/workflows/pkg-pr-new.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Any Commit
2+
on:
3+
- push
4+
- pull_request
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js LTS
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: lts/*
22+
cache: yarn
23+
24+
- name: Install dependencies
25+
run: yarn --immutable
26+
27+
- run: yarn dlx pkg-pr-new publish './packages/*'

.github/workflows/pkg-size.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Package Size Report
33
on:
44
- pull_request
55

6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
610
jobs:
711
pkg-size-report:
812
name: Package Size Report

.github/workflows/release.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- master
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
release:
1014
name: Release
@@ -23,9 +27,9 @@ jobs:
2327
cache: yarn
2428

2529
- name: Install Dependencies
26-
run: yarn --frozen-lockfile
30+
run: yarn --immutable
2731

28-
# `@pkgr/utils` is used by `@1stg/lint-staged`
32+
# `@pkgr/core` is used by `@1stg/lint-staged`
2933
- name: Build
3034
run: yarn build
3135

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
*.tsbuildinfo
33
.*cache
44
.type-coverage
5+
.yarn/*
6+
!.yarn/releases
7+
!.yarn/plugins
58
coverage
69
lib
710
node_modules

.lintstagedrc.cjs

-1
This file was deleted.

.lintstagedrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@1stg/lint-staged/tsc'

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.yarn
2+
auto-imports.d.ts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports={name:"plugin-prepare-lifecycle",factory:e=>({hooks:{afterAllInstalled(r){if(!r.topLevelWorkspace.manifest.scripts.get("prepare"))return;e("@yarnpkg/shell").execute("yarn prepare")}}})};

.yarn/releases/yarn-4.7.0.cjs

+935
Large diffs are not rendered by default.

.yarnrc.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
enableTelemetry: false
2+
3+
nodeLinker: node-modules
4+
5+
plugins:
6+
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
7+
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
8+
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'
9+
10+
yarnPath: .yarn/releases/yarn-4.7.0.cjs

auto-imports.d.ts

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* eslint-disable */
2+
/* prettier-ignore */
3+
// @ts-nocheck
4+
// noinspection JSUnusedGlobalSymbols
5+
// Generated by unplugin-auto-import
6+
// biome-ignore lint: disable
7+
export {}
8+
declare global {
9+
const afterAll: typeof import('vitest')['afterAll']
10+
const afterEach: typeof import('vitest')['afterEach']
11+
const assert: typeof import('vitest')['assert']
12+
const assertType: (typeof import('vitest'))['assertType']
13+
const beforeAll: typeof import('vitest')['beforeAll']
14+
const beforeEach: typeof import('vitest')['beforeEach']
15+
const bench: (typeof import('vitest'))['bench']
16+
const chai: typeof import('vitest')['chai']
17+
const createExpect: (typeof import('vitest'))['createExpect']
18+
const describe: typeof import('vitest')['describe']
19+
const expect: typeof import('vitest')['expect']
20+
const expectTypeOf: (typeof import('vitest'))['expectTypeOf']
21+
const getRunningMode: (typeof import('vitest'))['getRunningMode']
22+
const inject: (typeof import('vitest'))['inject']
23+
const isFirstRun: (typeof import('vitest'))['isFirstRun']
24+
const isWatchMode: (typeof import('vitest'))['isWatchMode']
25+
const it: typeof import('vitest')['it']
26+
const onTestFailed: (typeof import('vitest'))['onTestFailed']
27+
const onTestFinished: (typeof import('vitest'))['onTestFinished']
28+
const runOnce: (typeof import('vitest'))['runOnce']
29+
const should: (typeof import('vitest'))['should']
30+
const suite: typeof import('vitest')['suite']
31+
const test: typeof import('vitest')['test']
32+
const vi: typeof import('vitest')['vi']
33+
const vitest: typeof import('vitest')['vitest']
34+
}

eslint.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import recommended from '@1stg/eslint-config'
2+
3+
export default [
4+
...recommended,
5+
{
6+
rules: {
7+
'sonarjs/no-nested-conditional': 'off',
8+
},
9+
},
10+
]

package.json

+34-33
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,69 @@
11
{
22
"name": "@unts/pkgr",
33
"version": "0.0.0",
4+
"type": "module",
45
"description": "Simple but incredible utilities for package bundlers like rollup, webpack.",
5-
"repository": "git+https://github.com/un-ts/pkgr.git",
6+
"repository": "https://github.com/un-ts/pkgr.git",
67
"homepage": "https://pkgr.vercel.app",
7-
"author": "JounQin (https://www.1stG.me) <[email protected]>",
8+
"author": "JounQin <[email protected]> (https://www.1stG.me)",
89
"license": "MIT",
910
"private": true,
1011
"workspaces": [
11-
"packages/**"
12+
"packages/*"
1213
],
13-
"packageManager": "yarn@1.22.21",
14+
"packageManager": "yarn@4.7.0",
1415
"scripts": {
1516
"build": "run-s build:ts build:r",
1617
"build:r": "tsx packages/rollup/src/cli.ts -f cjs -d false",
1718
"build:ts": "tsc -b",
1819
"clean": "rimraf --glob packages/*/{lib,*.tsbuildinfo}",
19-
"codesandbox:install": "yarn --ignore-engines",
20-
"lint": "run-p lint:*",
21-
"lint:es": "eslint . --cache -f friendly",
20+
"lint": "run-p 'lint:*'",
21+
"lint:es": "eslint . --cache",
2222
"lint:tsc": "tsc --noEmit",
23-
"prelint": "yarn build",
24-
"prepare": "patch-package && simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0",
25-
"pretest": "yarn clean",
23+
"prepare": "patch-package && simple-git-hooks && yarn-berry-deduplicate || exit 0",
2624
"release": "changeset publish",
27-
"test": "jest",
25+
"test": "vitest run --coverage",
2826
"typecov": "type-coverage"
2927
},
3028
"devDependencies": {
31-
"@1stg/common-config": "^10.0.0",
32-
"@changesets/changelog-github": "^0.5.0",
33-
"@changesets/cli": "^2.27.1",
29+
"@1stg/common-config": "^11.0.4",
30+
"@changesets/changelog-github": "^0.5.1",
31+
"@changesets/cli": "^2.28.1",
32+
"@commitlint/cli": "^19.8.0",
3433
"@types/cross-spawn": "^6.0.6",
3534
"@types/debug": "^4.1.12",
36-
"@types/imagemin": "^8.0.5",
35+
"@types/imagemin": "^9.0.1",
3736
"@types/is-glob": "^4.0.4",
38-
"@types/jest": "^29.5.11",
3937
"@types/lodash-es": "^4.17.12",
40-
"@types/micromatch": "^4.0.6",
41-
"@types/node": "^20.11.4",
42-
"@vitejs/plugin-vue": "^5.0.3",
43-
"@vitejs/plugin-vue-jsx": "^3.1.0",
38+
"@types/micromatch": "^4.0.9",
39+
"@types/node": "^20.17.24",
40+
"@unts/patch-package": "^8.1.1",
41+
"@vitejs/plugin-vue": "^5.2.3",
42+
"@vitejs/plugin-vue-jsx": "^4.1.2",
43+
"@vitest/coverage-istanbul": "^3.0.9",
44+
"eslint": "^9.22.0",
4445
"jest": "^29.7.0",
45-
"patch-package": "^8.0.0",
46-
"rimraf": "^5.0.5",
47-
"ts-jest": "^29.1.1",
48-
"tsx": "^4.7.0",
49-
"type-coverage": "^2.27.1",
50-
"typescript": "^5.3.3",
51-
"vue": "^3.4.15",
52-
"yarn-deduplicate": "^6.0.2"
46+
"lint-staged": "^15.5.0",
47+
"npm-run-all2": "^7.0.2",
48+
"prettier": "^3.5.3",
49+
"rimraf": "^5.0.10",
50+
"simple-git-hooks": "^2.11.1",
51+
"tsx": "^4.19.3",
52+
"type-coverage": "^2.29.7",
53+
"typescript": "^5.8.2",
54+
"unplugin-auto-import": "^19.1.1",
55+
"vitest": "^3.0.9",
56+
"vue": "^3.5.13",
57+
"yarn-berry-deduplicate": "^6.1.1"
5358
},
5459
"resolutions": {
55-
"prettier": "^3.2.4"
60+
"prettier": "^3.5.3"
5661
},
5762
"commitlint": {
5863
"extends": [
5964
"@1stg"
6065
]
6166
},
62-
"jest": {
63-
"preset": "ts-jest",
64-
"collectCoverage": true
65-
},
6667
"prettier": "@1stg/prettier-config",
6768
"renovate": {
6869
"extends": [

packages/browser/index.ts

+4-7
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ async function startBrowserProcess(
9191
try {
9292
// Try our best to reuse existing tab
9393
// on OSX Chromium-based browser with AppleScript
94+
// eslint-disable-next-line sonarjs/os-command
9495
execSync('ps cax | grep "' + chromiumBrowser + '"')
96+
// eslint-disable-next-line sonarjs/os-command
9597
execSync(
96-
'osascript ../openChrome.applescript "' + // lgtm [js/shell-command-constructed-from-input]
98+
'osascript ../openChrome.applescript "' +
9799
encodeURI(url) +
98100
'" "' +
99101
chromiumBrowser +
@@ -124,12 +126,7 @@ async function startBrowserProcess(
124126
// eslint-disable-next-line unicorn/no-await-expression-member
125127
const open = (await import('open')).default
126128
open(url, {
127-
app: browser
128-
? {
129-
name: browser,
130-
arguments: args,
131-
}
132-
: undefined,
129+
app: browser ? { name: browser, arguments: args } : undefined,
133130
wait: false,
134131
}).catch(() => {}) // eslint-disable-line @typescript-eslint/no-empty-function -- Prevent `unhandledRejection` error.
135132
return true

0 commit comments

Comments
 (0)