diff --git a/package.json b/package.json index e9e907dc..6499c172 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "appcenter", "version": "0.1.0", "type": "module", - "repository": "git@github.com:rx-ts/appcenter.git", + "repository": "git+https://github.com/un-ts/appcenter.git", "author": "JounQin (https://www.1stG.me) ", "license": "MIT", "scripts": { diff --git a/scripts/build.ts b/scripts/build.ts index 7e176e62..340e6493 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -2,54 +2,49 @@ import fs from 'node:fs/promises' import { request } from '@octokit/request' -const main = async () => { - /** - * @link https://github.com/sindresorhus/github-markdown-css - */ - const { data } = await request('POST /markdown', { - text: await fs.readFile('README.md', 'utf8'), - token: process.env.GITHUB_TOKEN, - }) +/** + * @link https://github.com/sindresorhus/github-markdown-css + */ +const { data } = await request('POST /markdown', { + text: await fs.readFile('README.md', 'utf8'), + token: process.env.GITHUB_TOKEN, +}) - await fs.writeFile( - 'public/index.html', - /* HTML */ ` - - - - - - App Center - - - - -
${data}
- - - `, - ) -} - -// eslint-disable-next-line unicorn/prefer-top-level-await -main().catch(console.error) + } + + + +
${data}
+ + + `, +) diff --git a/tsconfig.json b/tsconfig.json index 1824d7ff..0411c3cd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,3 +1,3 @@ { - "extends": "@1stg/tsconfig" + "extends": "@1stg/tsconfig/node16" }