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: 0 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ jobs:
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: pnpm install
- name: Build everything
# the local DTS plugin is required for building bundles
# @todo remove when no longer required
run: pnpm build
- name: Publish ${{inputs.workspace}} with ${{ inputs.tag }}
run: |
pnpm -F ${{inputs.workspace}} exec \
Expand Down
17 changes: 0 additions & 17 deletions dts-plugin/package.json

This file was deleted.

8 changes: 0 additions & 8 deletions dts-plugin/tsconfig.json

This file was deleted.

5 changes: 2 additions & 3 deletions express-zod-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-zod-api",
"version": "27.1.0",
"version": "27.1.1-beta.1",
"description": "A Typescript framework to help you get an API server up and running with I/O schema validation and custom middlewares in minutes.",
"license": "MIT",
"repository": {
Expand All @@ -16,7 +16,7 @@
"bugs": "https://github.com/RobinTail/express-zod-api/issues",
"funding": "https://github.com/sponsors/RobinTail",
"scripts": {
"build": "tsdown",
"build": "tsdown --config-loader unrun",
"pretest": "tsc",
"test": "vitest run --coverage",
"bench": "vitest bench --run ./bench",
Expand Down Expand Up @@ -96,7 +96,6 @@
"compression": "catalog:dev",
"cors": "^2.8.5",
"depd": "^2.0.0",
"dts-plugin": "workspace:^",
"express": "catalog:dev",
"express-fileupload": "catalog:dev",
"http-errors": "catalog:dev",
Expand Down
2 changes: 1 addition & 1 deletion express-zod-api/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from "tsdown";
import manifest from "./package.json" with { type: "json" };
import humanReadableDtsPlugin from "dts-plugin";
import { humanReadableDtsPlugin } from "../tools/readableDts";

export default defineConfig({
entry: "src/index.ts",
Expand Down
3 changes: 1 addition & 2 deletions migration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"scripts": {
"pretest": "tsc",
"test": "vitest run --globals",
"build": "tsdown",
"build": "tsdown --config-loader unrun",
"prepublishOnly": "eslint && pnpm test && pnpm build"
},
"type": "module",
Expand All @@ -43,7 +43,6 @@
},
"devDependencies": {
"@typescript-eslint/rule-tester": "catalog:dev",
"dts-plugin": "workspace:^",
"typescript": "catalog:dev"
}
}
2 changes: 1 addition & 1 deletion migration/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from "tsdown";
import manifest from "./package.json" with { type: "json" };
import humanReadableDtsPlugin from "dts-plugin";
import { humanReadableDtsPlugin } from "../tools/readableDts";

export default defineConfig({
entry: "index.ts",
Expand Down
18 changes: 0 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ packages:
- esm-test
- compat-test
- issue952-test
- dts-plugin
gitChecks: false
engineStrict: true
autoInstallPeers: false
Expand Down Expand Up @@ -45,6 +44,7 @@ publicHoistPattern:
- "globals" # used by eslint.config.js
- "@types/qs" # used by index.ts, fixes TS2742 for attachRouting
- "@types/express-serve-static-core" # used by index.ts, fixes TS2742 for attachRouting
- "rolldown" # used by readableDts tool
catalogs:
prod:
"ramda": "^0.32.0"
Expand Down
2 changes: 1 addition & 1 deletion dts-plugin/index.ts → tools/readableDts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const prettyOptions: Options = {
};

/** @desc Fixes weird formatting in the .d.ts files generated by rolldown-plugin-dts v0.21 */
export default (): Plugin => ({
export const humanReadableDtsPlugin = (): Plugin => ({
name: "human-readable-dts-rolldown-plugin",
generateBundle: async (_opt, bundle) => {
for (const [name, file] of Object.entries(bundle)) {
Expand Down
3 changes: 1 addition & 2 deletions zod-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"scripts": {
"pretest": "tsc",
"test": "vitest run",
"build": "tsdown",
"build": "tsdown --config-loader unrun",
"prepublishOnly": "eslint && pnpm test && pnpm build"
},
"type": "module",
Expand Down Expand Up @@ -47,7 +47,6 @@
"devDependencies": {
"@types/ramda": "catalog:dev",
"camelize-ts": "catalog:dev",
"dts-plugin": "workspace:^",
"typescript": "catalog:dev",
"zod": "catalog:dev"
},
Expand Down
2 changes: 1 addition & 1 deletion zod-plugin/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from "tsdown";
import manifest from "./package.json" with { type: "json" };
import humanReadableDtsPlugin from "dts-plugin";
import { humanReadableDtsPlugin } from "../tools/readableDts";

const plugins = [humanReadableDtsPlugin()];

Expand Down