Skip to content

Commit e284b5d

Browse files
authored
chore: let's add a placeholder package first (#3)
1 parent 940afed commit e284b5d

File tree

12 files changed

+3078
-4323
lines changed

12 files changed

+3078
-4323
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"changelog": [
44
"@changesets/changelog-github",
55
{
6-
"repo": "un-ts/lib-boilerplate"
6+
"repo": "un-ts/oxc-jest"
77
}
88
],
99
"commit": false,

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- 18
1818
- 20
1919
- 22
20+
- 24
2021
os:
2122
- macos-latest
2223
- windows-latest

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
run: yarn build
2929

3030
- name: Publish
31-
run: yarn dlx pkg-pr-new publish --compact
31+
run: yarn dlx pkg-pr-new publish # --compact

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: Create Release Pull Request or Publish to npm
3838
uses: changesets/action@v1
3939
with:
40-
commit: 'chore: release lib-boilerplate'
41-
title: 'chore: release lib-boilerplate'
40+
commit: 'chore: release oxc-jest'
41+
title: 'chore: release oxc-jest'
4242
version: yarn run version
4343
publish: yarn release
4444
env:

.lintstagedrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nano-staged.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@1stg/nano-staged/tsc'

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# lib-boilerplate
1+
# oxc-jest
22

3-
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/un-ts/lib-boilerplate/ci.yml?branch=main)](https://github.com/un-ts/lib-boilerplate/actions/workflows/ci.yml?query=branch%3Amain)
4-
[![Codecov](https://img.shields.io/codecov/c/github/un-ts/lib-boilerplate.svg)](https://codecov.io/gh/un-ts/lib-boilerplate)
5-
[![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fun-ts%2Flib-boilerplate%2Fmain%2Fpackage.json)](https://github.com/plantain-00/type-coverage)
6-
[![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/un-ts/lib-boilerplate)](https://coderabbit.ai)
7-
[![npm](https://img.shields.io/npm/v/lib-boilerplate.svg)](https://www.npmjs.com/package/lib-boilerplate)
8-
[![GitHub Release](https://img.shields.io/github/release/un-ts/lib-boilerplate)](https://github.com/un-ts/lib-boilerplate/releases)
3+
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/un-ts/oxc-jest/ci.yml?branch=main)](https://github.com/un-ts/oxc-jest/actions/workflows/ci.yml?query=branch%3Amain)
4+
[![Codecov](https://img.shields.io/codecov/c/github/un-ts/oxc-jest.svg)](https://codecov.io/gh/un-ts/oxc-jest)
5+
[![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fun-ts%2Foxc-jest%2Fmain%2Fpackage.json)](https://github.com/plantain-00/type-coverage)
6+
[![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/un-ts/oxc-jest)](https://coderabbit.ai)
7+
[![npm](https://img.shields.io/npm/v/oxc-jest.svg)](https://www.npmjs.com/package/oxc-jest)
8+
[![GitHub Release](https://img.shields.io/github/release/un-ts/oxc-jest)](https://github.com/un-ts/oxc-jest/releases)
99

1010
[![Conventional Commits](https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
1111
[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)
@@ -31,22 +31,22 @@ A simple library boilerplate.
3131

3232
```sh
3333
# pnpm
34-
pnpm add lib-boilerplate
34+
pnpm add oxc-jest
3535

3636
# yarn
37-
yarn add lib-boilerplate
37+
yarn add oxc-jest
3838

3939
# npm
40-
npm i lib-boilerplate
40+
npm i oxc-jest
4141

4242
# bun
43-
bun add lib-boilerplate
43+
bun add oxc-jest
4444
```
4545

4646
### API
4747

4848
```js
49-
import echo from 'lib-boilerplate'
49+
import echo from 'oxc-jest'
5050

5151
echo()
5252
```

index.d.cts

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

package.json

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "lib-boilerplate",
2+
"name": "oxc-jest",
33
"version": "0.0.0",
44
"type": "module",
55
"description": "A simple library boilerplate.",
6-
"repository": "git+https://github.com/un-ts/lib-boilerplate.git",
6+
"repository": "git+https://github.com/un-ts/oxc-jest.git",
77
"author": "JounQin <[email protected]> (https://www.1stG.me)",
88
"funding": "https://opencollective.com/unts",
99
"license": "MIT",
@@ -13,15 +13,14 @@
1313
},
1414
"exports": "./src/index.ts",
1515
"files": [
16-
"index.d.cts",
1716
"lib",
1817
"!**/*.tsbuildinfo"
1918
],
2019
"scripts": {
2120
"build": "run-p 'build:*'",
22-
"build:r": "r -f cjs",
2321
"build:tsc": "tsc -b src",
24-
"clean": "rimraf -g .type-coverage coverage dist lib '.*cache'",
22+
"build:tsdown": "tsdown src/index.ts -d lib --dts --format cjs",
23+
"clean": "premove .type-coverage coverage dist lib '.*cache'",
2524
"dev": "vitest",
2625
"docs": "vite",
2726
"docs:build": "vite build",
@@ -41,65 +40,60 @@
4140
"tslib": "^2.8.1"
4241
},
4342
"devDependencies": {
44-
"@1stg/browserslist-config": "^2.1.2",
45-
"@1stg/common-config": "^12.0.0",
46-
"@1stg/postcss-config": "^6.0.4",
47-
"@1stg/stylelint-config": "^6.0.3",
43+
"@1stg/browserslist-config": "^2.1.4",
44+
"@1stg/common-config": "^13.0.1",
45+
"@1stg/postcss-config": "^6.0.6",
46+
"@1stg/stylelint-config": "^6.0.5",
4847
"@changesets/changelog-github": "^0.5.1",
49-
"@changesets/cli": "^2.28.1",
50-
"@commitlint/cli": "^19.8.0",
48+
"@changesets/cli": "^2.29.4",
49+
"@commitlint/cli": "^19.8.1",
5150
"@mdx-js/rollup": "^3.1.0",
52-
"@pkgr/rollup": "^6.0.1",
53-
"@shikijs/rehype": "^3.2.1",
51+
"@shikijs/rehype": "^3.4.2",
5452
"@size-limit/preset-small-lib": "^11.2.0",
5553
"@types/mdx": "^2.0.13",
56-
"@types/node": "^22.14.0",
57-
"@types/react": "^19.1.0",
58-
"@types/react-dom": "^19.1.1",
59-
"@types/web": "^0.0.216",
54+
"@types/node": "^22.15.18",
55+
"@types/react": "^19.1.4",
56+
"@types/react-dom": "^19.1.5",
57+
"@types/web": "^0.0.235",
6058
"@vercel/analytics": "^1.5.0",
61-
"@vitejs/plugin-react-swc": "^3.8.1",
62-
"@vitest/coverage-v8": "^3.1.1",
63-
"clean-pkg-json": "^1.2.1",
64-
"eslint": "^9.24.0",
59+
"@vitejs/plugin-react-swc": "^3.9.0",
60+
"@vitest/coverage-v8": "^3.1.3",
61+
"clean-pkg-json": "^1.3.0",
62+
"eslint": "^9.27.0",
6563
"github-markdown-css": "^5.8.1",
66-
"lint-staged": "^15.5.0",
67-
"npm-run-all2": "^7.0.2",
64+
"nano-staged": "^0.8.0",
65+
"npm-run-all2": "^8.0.2",
66+
"premove": "^4.0.0",
6867
"prettier": "^3.5.3",
6968
"react": "^19.1.0",
7069
"react-dom": "^19.1.0",
71-
"react-router-dom": "^7.5.0",
70+
"react-router-dom": "^7.6.0",
7271
"rehype-slug": "^6.0.0",
7372
"remark-gfm": "^4.0.1",
74-
"rimraf": "^6.0.1",
75-
"simple-git-hooks": "^2.12.1",
73+
"simple-git-hooks": "^2.13.0",
7674
"size-limit": "^11.2.0",
77-
"stylelint": "^16.17.0",
75+
"stylelint": "^16.19.1",
76+
"tsdown": "^0.11.11",
7877
"type-coverage": "^2.29.7",
7978
"typescript": "^5.8.3",
80-
"vite": "^6.2.5",
81-
"vitest": "^3.1.1",
82-
"yarn-berry-deduplicate": "^6.1.1"
79+
"vite": "^6.3.5",
80+
"vitest": "^3.1.3",
81+
"yarn-berry-deduplicate": "^6.1.3"
8382
},
8483
"resolutions": {
85-
"es5-ext": "npm:@unes/es5-ext@latest",
8684
"prettier": "^3.5.3"
8785
},
8886
"publishConfig": {
8987
"main": "./lib/index.cjs",
90-
"types": "./index.d.cts",
88+
"types": "./lib/index.d.cts",
9189
"module": "./lib/index.js",
9290
"exports": {
9391
"import": {
9492
"types": "./lib/index.d.ts",
9593
"default": "./lib/index.js"
9694
},
97-
"module-sync": {
98-
"types": "./lib/index.d.ts",
99-
"default": "./lib/index.js"
100-
},
10195
"require": {
102-
"types": "./index.d.cts",
96+
"types": "./lib/index.d.cts",
10397
"default": "./lib/index.cjs"
10498
}
10599
}

test/basic.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import echo from 'lib-boilerplate'
1+
import echo from 'oxc-jest'
22

33
test('it should just work', () => {
44
expect(echo()).toBe('Hello World!')

0 commit comments

Comments
 (0)