From 23b554d2724a9d50cf123fd9c7c3d6e414a2db94 Mon Sep 17 00:00:00 2001 From: stdpi Date: Tue, 4 Jun 2024 17:24:03 +0700 Subject: [PATCH] fix: anything around stupid ts code (squashed) fix: whatever apparently 1.1.3 never works fix: commonjs option? fix: dfy2c --- package.json | 8 ++++---- src/models.ts | 2 +- tsconfig.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5004c50..731a5ba 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "@team-fuho/wt", - "version": "1.1.3", + "version": "1.1.6", "description": "", - "type": "module", - "main": "dist/src/index.js", - "types": "dist/src/index.d.ts", + "type": "commonjs", + "main": "dist/index.js", + "types": "dist/index.d.ts", "files": [ "/dist" ], diff --git a/src/models.ts b/src/models.ts index d5a9f73..53b3723 100644 --- a/src/models.ts +++ b/src/models.ts @@ -5,7 +5,7 @@ export function BlogPage(ctx: Context) { intro: string, body: string, thumbnail_set: Record - }>("gallery.Picture", ctx) + }>("blog.BlogPage", ctx) } export function GalleryPicture(ctx: Context) { diff --git a/tsconfig.json b/tsconfig.json index 6a8f1fe..7792b24 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "CommonJS", "target": "ESNext", "declaration": true, "outDir": "./dist"