Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Then for the future releases, you can run `pnpm run release` to do the release a
<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/pkg-placeholder
[npm-version-href]: https://npmx.dev/package/pkg-placeholder
[npm-downloads-src]: https://img.shields.io/npm/dm/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/pkg-placeholder
[npm-downloads-href]: https://npmx.dev/package/pkg-placeholder
[bundle-src]: https://img.shields.io/bundlephobia/minzip/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669&label=minzip
[bundle-href]: https://bundlephobia.com/result?p=pkg-placeholder
[license-src]: https://img.shields.io/github/license/antfu/pkg-placeholder.svg?style=flat&colorA=080f12&colorB=1fa669
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pkg-placeholder",
"type": "module",
"version": "0.0.0",
"packageManager": "pnpm@10.33.0",
"packageManager": "pnpm@10.33.1",
"description": "_description_",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
Expand All @@ -19,8 +19,6 @@
".": "./dist/index.mjs",
"./package.json": "./package.json"
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"files": [
"dist"
Expand All @@ -32,7 +30,7 @@
"prepublishOnly": "nr build",
"release": "bumpp",
"start": "tsx src/index.ts",
"test": "vitest",
"test": "pnpm run build && vitest",
"typecheck": "tsc",
"prepare": "simple-git-hooks"
},
Expand All @@ -47,6 +45,7 @@
"publint": "catalog:cli",
"simple-git-hooks": "catalog:cli",
"tsdown": "catalog:cli",
"tsdown-stale-guard": "catalog:testing",
"tsnapi": "catalog:testing",
"tsx": "catalog:cli",
"typescript": "catalog:cli",
Expand Down
1,387 changes: 732 additions & 655 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,23 @@ packages:

catalogs:
cli:
'@antfu/eslint-config': ^8.1.1
'@antfu/ni': ^30.0.0
'@antfu/eslint-config': ^8.2.0
'@antfu/ni': ^30.1.0
bumpp: ^11.0.1
eslint: ^10.2.0
eslint: ^10.2.1
lint-staged: ^16.4.0
publint: ^0.3.18
simple-git-hooks: ^2.13.1
tsdown: ^0.17.3
tsdown: ^0.21.10
tsx: ^4.21.0
typescript: ^6.0.2
vite: ^8.0.8
typescript: ^6.0.3
vite: ^8.0.9
inlined:
'@antfu/utils': ^9.3.0
testing:
tsnapi: ^0.1.1
vitest: ^4.1.4
tsdown-stale-guard: ^0.1.1
tsnapi: ^0.3.2
vitest: ^4.1.5
types:
'@types/node': ^25.6.0
onlyBuiltDependencies:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/**
* Generated by tsnapi — public API snapshot of `pkg-placeholder` */
// Variables
* Generated by tsnapi — public API snapshot of `pkg-placeholder`
*/
// #region Variables
export declare const one: number;
export declare const two: number;
export declare const two: number;
// #endregion
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/**
* Generated by tsnapi — public API snapshot of `pkg-placeholder` */
* Generated by tsnapi — public API snapshot of `pkg-placeholder`
*/
// #region Variables
export var one /* const */
export var two /* const */
export var two /* const */
// #endregion
14 changes: 14 additions & 0 deletions test/api-snapshot.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { fileURLToPath } from 'node:url'
import { guardStaleBuild } from 'tsdown-stale-guard'
import { snapshotApiPerEntry } from 'tsnapi/vitest'
import { beforeAll, describe } from 'vitest'

const root = fileURLToPath(new URL('..', import.meta.url))

describe('api snapshot', () => {
beforeAll(async () => {
await guardStaleBuild({ root })
})

snapshotApiPerEntry(root)
})
7 changes: 0 additions & 7 deletions test/index.test.ts

This file was deleted.

8 changes: 2 additions & 6 deletions tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import process from 'node:process'
import { defineConfig } from 'tsdown'
import ApiSnapshot from 'tsnapi/rolldown'
import { StaleGuardRecorder } from 'tsdown-stale-guard'

export default defineConfig({
entry: [
Expand All @@ -10,9 +9,6 @@ export default defineConfig({
exports: true,
publint: true,
plugins: [
ApiSnapshot({
// TODO: remove this when the library is stable to guard against breaking changes
update: !process.env.CI,
}),
StaleGuardRecorder(),
],
})
Loading