From 1be7aef91e0056928895383ac17ce5ea7dade7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=97=8D+85CD?= <50108258+kwaa@users.noreply.github.com> Date: Tue, 23 May 2023 12:28:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20setup=20api=20extractor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ➕ add @microsoft/api-extractor, @microsoft/api-documenter, npm-run-all 🔧 setup api extractor 🔧 update turborepo config 🔨 update scripts 👷 update actions --- .github/workflows/gh-pages.yml | 1 + .gitignore | 6 +- api-extractor.json | 43 +++ docs/.vitepress/config.ts | 168 ++++++------ docs/package.json | 4 +- package.json | 11 +- packages/create-fff/package.json | 32 +-- .../api-extractor.json | 5 + .../fff-flavored-frontmatter/package.json | 31 ++- .../indiekit-preset-fff/api-extractor.json | 5 + packages/indiekit-preset-fff/package.json | 3 +- packages/markdown-it-fff/api-extractor.json | 5 + packages/markdown-it-fff/package.json | 41 ++- packages/remark-fff/api-extractor.json | 5 + packages/remark-fff/package.json | 41 ++- pnpm-lock.yaml | 257 ++++++++++++++++++ turbo.json | 30 +- 17 files changed, 517 insertions(+), 171 deletions(-) create mode 100644 api-extractor.json create mode 100644 packages/fff-flavored-frontmatter/api-extractor.json create mode 100644 packages/indiekit-preset-fff/api-extractor.json create mode 100644 packages/markdown-it-fff/api-extractor.json create mode 100644 packages/remark-fff/api-extractor.json diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 3824361b..1e5b404c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -13,3 +13,4 @@ jobs: with: publish_dir: docs/.vitepress/dist cname: fff.js.org + build_command: pnpm docs:build diff --git a/.gitignore b/.gitignore index eb6fb695..a12725f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ # build output +coverage +dist docs/.vitepress/cache -docs/.vitepress/dist -packages/**/dist -packages/**/coverage +docs/references # dependencies node_modules diff --git a/api-extractor.json b/api-extractor.json new file mode 100644 index 00000000..640ea3ce --- /dev/null +++ b/api-extractor.json @@ -0,0 +1,43 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "apiReport": { + "enabled": false + }, + "bundledPackages": [ + "fff-flavored-frontmatter", + "indiekit-preset-fff", + "markdown-it-fff", + "remark-fff" + ], + "compiler": {}, + "docModel": { + "apiJsonFilePath": "/dist/api-extractor/.api.json", + "enabled": true + }, + "dtsRollup": { + "enabled": false + }, + "mainEntryPointFilePath": "/packages//dist/index.d.ts", + "messages": { + "compilerMessageReporting": { + "default": { + "logLevel": "warning" + } + }, + "extractorMessageReporting": { + "ae-wrong-input-file-type": { + "logLevel": "warning" + }, + "default": { + "logLevel": "warning" + } + }, + "tsdocMessageReporting": { + "default": { + "logLevel": "warning" + } + } + }, + "tsdocMetadata": { + } +} diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index afd79573..d12ca722 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,202 +1,218 @@ -import { version } from '../package.json' -import { defineConfig } from 'vitepress' import { withPwa } from '@vite-pwa/vitepress' import footnote from 'markdown-it-footnote' +import { defineConfig } from 'vitepress' + +import { version } from '../package.json' const nav = () => [ { - text: version, items: [ { - text: 'Changelog', link: '/version/changelog', + text: 'Changelog', }, { - text: 'Contributing', link: '/intro/contributing', + text: 'Contributing', }, ], + text: version, }, ] const sidebar = () => [ { - text: 'Introduction', collapsible: true, items: [ - { text: 'What is FFF?', link: '/intro/what-is-fff' }, - { text: 'Implementing', link: '/intro/implementing' }, + { link: '/intro/what-is-fff', text: 'What is FFF?' }, + { link: '/intro/implementing', text: 'Implementing' }, { - text: 'Contributing', link: '/intro/contributing', + text: 'Contributing', }, - { text: 'Showcase', link: '/intro/showcase' }, + { link: '/intro/showcase', text: 'Showcase' }, ], + text: 'Introduction', }, { - text: 'Concepts', collapsible: true, items: [ { - text: 'Object Media', link: '/concepts/object-media', + text: 'Object Media', }, { - text: 'Flags', link: '/concepts/flags', + text: 'Flags', }, { + link: '/concepts/flavor-transform', text: 'Flavor Transform', - link: '/concepts/flavor-transform' - } + }, ], + text: 'Concepts', }, { + collapsible: true, + items: [ + { + link: '/packages/fff-flavored-frontmatter', + text: 'fff-flavored-frontmatter', + }, + { link: '/packages/remark-fff', text: 'remark-fff' }, + { link: '/packages/markdown-it-fff', text: 'markdown-it-fff' }, + { link: '/packages/indiekit-preset-fff', text: 'indiekit-preset-fff' }, + { link: '/packages/create-fff', text: 'create-fff' }, + ], text: 'Packages', + }, + { collapsible: true, items: [ { + link: '/references/fff-flavored-frontmatter', text: 'fff-flavored-frontmatter', - link: '/packages/fff-flavored-frontmatter', }, - { text: 'remark-fff', link: '/packages/remark-fff' }, - { text: 'markdown-it-fff', link: '/packages/markdown-it-fff' }, - { text: 'indiekit-preset-fff', link: '/packages/indiekit-preset-fff' }, - { text: 'create-fff', link: '/packages/create-fff'} + { link: '/references/remark-fff', text: 'remark-fff' }, + { link: '/references/markdown-it-fff', text: 'markdown-it-fff' }, + { link: '/references/indiekit-preset-fff', text: 'indiekit-preset-fff' }, + // { link: '/references/create-fff', text: 'create-fff' }, ], + link: '/references/index', + text: 'References', }, { - text: 'Version', collapsible: true, items: [ - { text: 'Changelog', link: '/version/changelog' }, - { text: '0.6 (draft)', link: '/version/0.6'}, - { text: '0.5', link: '/version/0.5' }, - { text: '0.4', link: '/version/0.4' }, - { text: '0.3', link: '/version/0.3' }, - { text: '0.2', link: '/version/0.2' }, - { text: '0.1', link: '/version/0.1' }, + { link: '/version/changelog', text: 'Changelog' }, + { link: '/version/0.6', text: '0.6 (draft)' }, + { link: '/version/0.5', text: '0.5' }, + { link: '/version/0.4', text: '0.4' }, + { link: '/version/0.3', text: '0.3' }, + { link: '/version/0.2', text: '0.2' }, + { link: '/version/0.1', text: '0.1' }, ], + text: 'Version', }, ] export default withPwa( defineConfig({ - lang: 'en-US', - title: 'FFF Flavored Frontmatter', - titleTemplate: 'FFF', - description: 'The Flexible & Functional Frontmatter Solution.', appearance: 'dark', - lastUpdated: true, - markdown: { - theme: { - light: 'material-theme-lighter', - dark: 'material-theme-darker', - }, - config: (md) => md.use(footnote), - }, + description: 'The Flexible & Functional Frontmatter Solution.', head: [ [ 'link', - { rel: 'icon', href: '/glowing_star.svg', type: 'image/svg+xml' }, + { href: '/glowing_star.svg', rel: 'icon', type: 'image/svg+xml' }, ], [ 'link', { - rel: 'manifest', href: '/manifest.webmanifest', + rel: 'manifest', type: 'application/manifest+json', }, ], [ 'meta', { - property: 'og:image', content: 'https://og-image.vercel.app/**FFF**%20Flavored%20Frontmatter.png?theme=dark&md=1&fontSize=100px&images=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fvercel-triangle-white.svg&images=https%3A%2F%2Ffff.js.org%2Fglowing_star.svg&widths=256&widths=384&heights=256&heights=384', + property: 'og:image', }, ], [ 'meta', { - property: 'twitter:image', content: 'https://og-image.vercel.app/**FFF**%20Flavored%20Frontmatter.png?theme=dark&md=1&fontSize=100px&images=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fvercel-triangle-white.svg&images=https%3A%2F%2Ffff.js.org%2Fglowing_star.svg&widths=256&widths=384&heights=256&heights=384', + property: 'twitter:image', }, ], - ['meta', { property: 'twitter:card', content: 'summary' }], + ['meta', { content: 'summary', property: 'twitter:card' }], [ 'script', { - src: 'https://plausible.kwaa.dev/js/plausible.js', - defer: '', 'data-domain': 'fff.js.org', + 'defer': '', + 'src': 'https://plausible.kwaa.dev/js/plausible.js', }, ], ], - themeConfig: { - nav: nav(), - sidebar: sidebar(), - siteTitle: 'FFF', - logo: '/glowing_star.svg', - socialLinks: [ - { icon: 'github', link: 'https://github.com/importantimport/fff' }, - ], - editLink: { - pattern: 'https://github.com/importantimport/fff/edit/main/:path', - text: 'Suggest changes to this page', + lang: 'en-US', + lastUpdated: true, + markdown: { + config: md => md.use(footnote), + theme: { + dark: 'material-theme-darker', + light: 'material-theme-lighter', }, }, pwa: { - registerType: 'autoUpdate', includeManifestIcons: false, manifest: { - id: '/', - name: 'FFF Flavored Frontmatter', - short_name: 'FFF', description: 'The Flexible & Functional Frontmatter Solution.', - theme_color: '#fdd835', icons: [ { - src: 'glowing_star.svg', + purpose: 'any', sizes: 'any', + src: 'glowing_star.svg', type: 'image/svg+xml', - purpose: 'any', }, ], + id: '/', + name: 'FFF Flavored Frontmatter', + short_name: 'FFF', + theme_color: '#fdd835', }, + registerType: 'autoUpdate', workbox: { runtimeCaching: [ { - urlPattern: /^https:\/\/fonts\.googleapis\.com\/.*/i, handler: 'CacheFirst', options: { cacheName: 'google-fonts-cache', - expiration: { - maxEntries: 10, - maxAgeSeconds: 60 * 60 * 24 * 365, - }, cacheableResponse: { statuses: [0, 200], }, + expiration: { + maxAgeSeconds: 60 * 60 * 24 * 365, + maxEntries: 10, + }, }, + urlPattern: /^https:\/\/fonts\.googleapis\.com\/.*/i, }, { - urlPattern: /^https:\/\/fonts\.gstatic\.com\/.*/i, handler: 'CacheFirst', options: { cacheName: 'gstatic-fonts-cache', - expiration: { - maxEntries: 10, - maxAgeSeconds: 60 * 60 * 24 * 365, - }, cacheableResponse: { statuses: [0, 200], }, + expiration: { + maxAgeSeconds: 60 * 60 * 24 * 365, + maxEntries: 10, + }, }, + urlPattern: /^https:\/\/fonts\.gstatic\.com\/.*/i, }, ], }, }, - }) + themeConfig: { + editLink: { + pattern: 'https://github.com/importantimport/fff/edit/main/:path', + text: 'Suggest changes to this page', + }, + logo: '/glowing_star.svg', + nav: nav(), + sidebar: sidebar(), + siteTitle: 'FFF', + socialLinks: [ + { icon: 'github', link: 'https://github.com/importantimport/fff' }, + ], + }, + title: 'FFF Flavored Frontmatter', + titleTemplate: 'FFF', + }), ) diff --git a/docs/package.json b/docs/package.json index b70437a0..a5dab22e 100644 --- a/docs/package.json +++ b/docs/package.json @@ -2,15 +2,15 @@ "name": "fff-docs", "version": "0.5.3", "private": true, + "description": "The Flexible & Functional Frontmatter Solution.", "author": "藍+85CD", "license": "WTFPL", - "description": "The Flexible & Functional Frontmatter Solution.", + "homepage": "https://fff.js.org", "repository": { "type": "git", "url": "https://github.com/importantimport/fff.git", "directory": "docs" }, - "homepage": "https://fff.js.org", "bugs": "https://github.com/importantimport/fff/issues", "scripts": { "dev": "vitepress dev", diff --git a/package.json b/package.json index 6ae0876e..d7b4dab8 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,16 @@ { "name": "fff-monorepo", + "type": "module", "version": "0.4.0", "private": true, - "type": "module", "scripts": { "preinstall": "npx -y only-allow pnpm", "dev": "pnpm -rF fff-docs dev", - "build": "turbo run build", + "build": "turbo run build --filter=./packages/*", + "docs:build": "run-s build docs:build:api-extractor docs:build:api-documenter docs:build:vitepress", + "docs:build:api-extractor": "turbo run api-extractor", + "docs:build:api-documenter": "api-documenter markdown -i dist/api-extractor -o docs/references", + "docs:build:vitepress": "turbo run build --filter=fff-docs", "test": "turbo run test", "test:watch": "turbo run test:watch", "coverage": "turbo run coverage", @@ -18,8 +22,11 @@ "@changesets/changelog-github": "^0.4.8", "@changesets/cli": "^2.26.1", "@importantimport/eslint-config": "^0.0.6", + "@microsoft/api-documenter": "^7.22.6", + "@microsoft/api-extractor": "^7.35.0", "@vitest/coverage-c8": "^0.31.1", "eslint": "^8.41.0", + "npm-run-all": "^4.1.5", "tsup": "^6.7.0", "tsx": "^3.12.7", "turbo": "^1.9.8", diff --git a/packages/create-fff/package.json b/packages/create-fff/package.json index fd90dda5..9d134143 100644 --- a/packages/create-fff/package.json +++ b/packages/create-fff/package.json @@ -1,36 +1,34 @@ { "name": "create-fff", + "type": "module", "version": "0.5.3", + "description": "Create FFF-related configuration files.", "author": "藍+85CD", "license": "WTFPL", - "keywords": [ - "fff", - "fff-flavored-frontmatter", - "typescript" - ], - "description": "Create FFF-related configuration files.", + "homepage": "https://fff.js.org", "repository": { "type": "git", "url": "https://github.com/importantimport/fff.git", "directory": "packages/create-fff" }, - "homepage": "https://fff.js.org", "bugs": "https://github.com/importantimport/fff/issues", - "type": "module", - "module": "./dist/index.js", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "bin": "./dist/index.js", + "keywords": [ + "fff", + "fff-flavored-frontmatter", + "typescript" + ], "exports": { ".": { - "import": "./dist/index.js", - "types": "./dist/index.d.ts" + "types": "./dist/index.d.ts", + "import": "./dist/index.js" }, "./package.json": "./package.json" }, - "files": [ - "dist" - ], + "main": "./dist/index.js", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "bin": "./dist/index.js", + "files": ["dist"], "scripts": { "dev": "tsx src/index.ts", "build": "tsup", diff --git a/packages/fff-flavored-frontmatter/api-extractor.json b/packages/fff-flavored-frontmatter/api-extractor.json new file mode 100644 index 00000000..5806c367 --- /dev/null +++ b/packages/fff-flavored-frontmatter/api-extractor.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "extends": "../../api-extractor.json", + "mainEntryPointFilePath": "/packages//dist/fff.d.ts" +} \ No newline at end of file diff --git a/packages/fff-flavored-frontmatter/package.json b/packages/fff-flavored-frontmatter/package.json index 4b348db6..6e1c41c3 100644 --- a/packages/fff-flavored-frontmatter/package.json +++ b/packages/fff-flavored-frontmatter/package.json @@ -1,8 +1,17 @@ { "name": "fff-flavored-frontmatter", + "type": "module", "version": "0.5.3", + "description": "Type definition of the FFF Flavored Frontmatter.", "author": "藍+85CD", "license": "WTFPL", + "homepage": "https://fff.js.org", + "repository": { + "type": "git", + "url": "https://github.com/importantimport/fff.git", + "directory": "packages/fff-flavored-frontmatter" + }, + "bugs": "https://github.com/importantimport/fff/issues", "keywords": [ "fff", "fff-flavored-frontmatter", @@ -12,27 +21,18 @@ "front-matter", "typescript" ], - "description": "Type definition of the FFF Flavored Frontmatter.", - "repository": { - "type": "git", - "url": "https://github.com/importantimport/fff.git", - "directory": "packages/fff-flavored-frontmatter" - }, - "homepage": "https://fff.js.org", - "bugs": "https://github.com/importantimport/fff/issues", - "type": "module", "source": "./fff.ts", - "module": "./dist/fff.mjs", - "main": "./dist/fff.cjs", - "types": "./dist/fff.d.ts", "exports": { ".": { - "import": "./dist/fff.mjs", + "types": "./dist/fff.d.ts", "require": "./dist/fff.cjs", - "types": "./dist/fff.d.ts" + "import": "./dist/fff.mjs" }, "./package.json": "./package.json" }, + "main": "./dist/fff.cjs", + "module": "./dist/fff.mjs", + "types": "./dist/fff.d.ts", "files": [ "fff.ts", "dist" @@ -41,6 +41,7 @@ "build": "tsup", "build:watch": "tsup --watch", "lint": "eslint src", - "lint:fix": "eslint src --fix" + "lint:fix": "eslint src --fix", + "api-extractor": "api-extractor run --local --verbose" } } \ No newline at end of file diff --git a/packages/indiekit-preset-fff/api-extractor.json b/packages/indiekit-preset-fff/api-extractor.json new file mode 100644 index 00000000..641ac254 --- /dev/null +++ b/packages/indiekit-preset-fff/api-extractor.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "extends": "../../api-extractor.json", + "mainEntryPointFilePath": "/packages//dist/index.d.ts" +} \ No newline at end of file diff --git a/packages/indiekit-preset-fff/package.json b/packages/indiekit-preset-fff/package.json index f837344d..a0c5d813 100644 --- a/packages/indiekit-preset-fff/package.json +++ b/packages/indiekit-preset-fff/package.json @@ -37,7 +37,8 @@ "build": "tsup", "build:watch": "tsup --watch", "lint": "eslint src", - "lint:fix": "eslint src --fix" + "lint:fix": "eslint src --fix", + "api-extractor": "api-extractor run --local --verbose" }, "dependencies": { "@iarna/toml": "^2.2.5", diff --git a/packages/markdown-it-fff/api-extractor.json b/packages/markdown-it-fff/api-extractor.json new file mode 100644 index 00000000..641ac254 --- /dev/null +++ b/packages/markdown-it-fff/api-extractor.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "extends": "../../api-extractor.json", + "mainEntryPointFilePath": "/packages//dist/index.d.ts" +} \ No newline at end of file diff --git a/packages/markdown-it-fff/package.json b/packages/markdown-it-fff/package.json index 428c8849..a7b27d9e 100644 --- a/packages/markdown-it-fff/package.json +++ b/packages/markdown-it-fff/package.json @@ -1,8 +1,17 @@ { "name": "markdown-it-fff", + "type": "module", "version": "0.5.3", + "description": "markdown-it plugin for auto-conversion other frontmatter variable formats to FFF Flavored Frontmatter.", "author": "藍+85CD", "license": "WTFPL", + "homepage": "https://fff.js.org", + "repository": { + "type": "git", + "url": "https://github.com/importantimport/fff.git", + "directory": "packages/markdown-it-fff" + }, + "bugs": "https://github.com/importantimport/fff/issues", "keywords": [ "fff", "fff-flavored-frontmatter", @@ -14,29 +23,18 @@ "markdown-it-plugin", "typescript" ], - "description": "markdown-it plugin for auto-conversion other frontmatter variable formats to FFF Flavored Frontmatter.", - "repository": { - "type": "git", - "url": "https://github.com/importantimport/fff.git", - "directory": "packages/markdown-it-fff" - }, - "homepage": "https://fff.js.org", - "bugs": "https://github.com/importantimport/fff/issues", - "type": "module", - "module": "./dist/index.mjs", - "main": "./dist/index.cjs", - "types": "./dist/index.d.ts", "exports": { ".": { - "import": "./dist/index.mjs", + "types": "./dist/index.d.ts", "require": "./dist/index.cjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, - "files": [ - "dist" - ], + "main": "./dist/index.cjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", + "files": ["dist"], "scripts": { "build": "tsup", "build:watch": "tsup --watch", @@ -44,7 +42,11 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint": "eslint src", - "lint:fix": "eslint src --fix" + "lint:fix": "eslint src --fix", + "api-extractor": "api-extractor run --local --verbose" + }, + "dependencies": { + "fff-flavored-frontmatter": "workspace:*" }, "devDependencies": { "@mdit-vue/plugin-frontmatter": "^0.12.0", @@ -52,8 +54,5 @@ "@types/markdown-it": "^12.2.3", "@types/mdurl": "^1.0.2", "markdown-it": "^13.0.1" - }, - "dependencies": { - "fff-flavored-frontmatter": "workspace:*" } } \ No newline at end of file diff --git a/packages/remark-fff/api-extractor.json b/packages/remark-fff/api-extractor.json new file mode 100644 index 00000000..641ac254 --- /dev/null +++ b/packages/remark-fff/api-extractor.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "extends": "../../api-extractor.json", + "mainEntryPointFilePath": "/packages//dist/index.d.ts" +} \ No newline at end of file diff --git a/packages/remark-fff/package.json b/packages/remark-fff/package.json index a2a3bcba..5cf58fd2 100644 --- a/packages/remark-fff/package.json +++ b/packages/remark-fff/package.json @@ -1,8 +1,17 @@ { "name": "remark-fff", + "type": "module", "version": "0.5.3", + "description": "Remark plugin for auto-conversion other frontmatter variable formats to FFF Flavored Frontmatter.", "author": "藍+85CD", "license": "WTFPL", + "homepage": "https://fff.js.org", + "repository": { + "type": "git", + "url": "https://github.com/importantimport/fff.git", + "directory": "packages/remark-fff" + }, + "bugs": "https://github.com/importantimport/fff/issues", "keywords": [ "fff", "fff-flavored-frontmatter", @@ -14,29 +23,18 @@ "remark-plugin", "typescript" ], - "description": "Remark plugin for auto-conversion other frontmatter variable formats to FFF Flavored Frontmatter.", - "repository": { - "type": "git", - "url": "https://github.com/importantimport/fff.git", - "directory": "packages/remark-fff" - }, - "homepage": "https://fff.js.org", - "bugs": "https://github.com/importantimport/fff/issues", - "type": "module", - "module": "./dist/index.mjs", - "main": "./dist/index.cjs", - "types": "./dist/index.d.ts", "exports": { ".": { - "import": "./dist/index.mjs", + "types": "./dist/index.d.ts", "require": "./dist/index.cjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, - "files": [ - "dist" - ], + "main": "./dist/index.cjs", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", + "files": ["dist"], "scripts": { "build": "tsup", "build:watch": "tsup --watch", @@ -44,15 +42,16 @@ "test:watch": "vitest", "coverage": "vitest run --coverage", "lint": "eslint src", - "lint:fix": "eslint src --fix" + "lint:fix": "eslint src --fix", + "api-extractor": "api-extractor run --local --verbose" + }, + "dependencies": { + "fff-flavored-frontmatter": "workspace:*" }, "devDependencies": { "remark": "^14.0.3", "remark-frontmatter": "^4.0.1", "unified": "^10.1.2", "vfile": "^5.3.7" - }, - "dependencies": { - "fff-flavored-frontmatter": "workspace:*" } } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 09a16e95..610691fb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,12 +13,21 @@ importers: '@importantimport/eslint-config': specifier: ^0.0.6 version: 0.0.6(eslint@8.41.0)(typescript@5.0.4) + '@microsoft/api-documenter': + specifier: ^7.22.6 + version: 7.22.6 + '@microsoft/api-extractor': + specifier: ^7.35.0 + version: 7.35.0 '@vitest/coverage-c8': specifier: ^0.31.1 version: 0.31.1(vitest@0.31.1) eslint: specifier: ^8.41.0 version: 8.41.0 + npm-run-all: + specifier: ^4.1.5 + version: 4.1.5 tsup: specifier: ^6.7.0 version: 6.7.0(typescript@5.0.4) @@ -2085,6 +2094,51 @@ packages: resolution: {integrity: sha512-mrC4y8n88BYvgcgzq9bvTlDgFyi2zuvzmPilRvRc3Uz1iIvq8mDhxJ0rHKFUNzPEScpDvJdIujqiDrulMqiudA==} dev: true + /@microsoft/api-documenter@7.22.6: + resolution: {integrity: sha512-4m981mS9VF3B+Z55kwaEV2NH0G0sMYI3RTvMNGHhNMg9BM2UWSF3B6knX8OKRkXoS0Rmu2YGFjPQey0kMhyB6A==} + hasBin: true + dependencies: + '@microsoft/api-extractor-model': 7.27.0 + '@microsoft/tsdoc': 0.14.2 + '@rushstack/node-core-library': 3.59.1 + '@rushstack/ts-command-line': 4.13.3 + colors: 1.2.5 + js-yaml: 3.13.1 + resolve: 1.22.2 + transitivePeerDependencies: + - '@types/node' + dev: true + + /@microsoft/api-extractor-model@7.27.0: + resolution: {integrity: sha512-wHqIMiwSARmiuVLn/zmVpiRncq6hvBfC5GF+sjrN3w4FqVkqFYk7DetvfRNdy/3URdqqmYGrhJlcU9HpLnHOPg==} + dependencies: + '@microsoft/tsdoc': 0.14.2 + '@microsoft/tsdoc-config': 0.16.2 + '@rushstack/node-core-library': 3.59.1 + transitivePeerDependencies: + - '@types/node' + dev: true + + /@microsoft/api-extractor@7.35.0: + resolution: {integrity: sha512-yBGfPJeEtzk8sg2hE2/vOPRvnJBvstbWNGeyGV1jIEUSgytzQ0QPgPEkOsP2n7nBfnyRXmZaBa2vJPGOzVWy+g==} + hasBin: true + dependencies: + '@microsoft/api-extractor-model': 7.27.0 + '@microsoft/tsdoc': 0.14.2 + '@microsoft/tsdoc-config': 0.16.2 + '@rushstack/node-core-library': 3.59.1 + '@rushstack/rig-package': 0.3.19 + '@rushstack/ts-command-line': 4.13.3 + colors: 1.2.5 + lodash: 4.17.21 + resolve: 1.22.2 + semver: 7.3.8 + source-map: 0.6.1 + typescript: 5.0.4 + transitivePeerDependencies: + - '@types/node' + dev: true + /@microsoft/tsdoc-config@0.16.2: resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==} dependencies: @@ -2173,6 +2227,39 @@ packages: rollup: 2.79.1 dev: true + /@rushstack/node-core-library@3.59.1: + resolution: {integrity: sha512-iy/xaEhXGpX+DY1ZzAtNA+QPw+9+TJh773Im+JxG4R1fu00/vWq470UOEj6upxlUxmp0JxhnmNRxzfptHrn/Uw==} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true + dependencies: + colors: 1.2.5 + fs-extra: 7.0.1 + import-lazy: 4.0.0 + jju: 1.4.0 + resolve: 1.22.2 + semver: 7.3.8 + z-schema: 5.0.5 + dev: true + + /@rushstack/rig-package@0.3.19: + resolution: {integrity: sha512-2d0/Gn+qjOYneZbiHjn4SjyDwq9I0WagV37z0F1V71G+yONgH7wlt3K/UoNiDkhA8gTHYPRo2jz3CvttybwSag==} + dependencies: + resolve: 1.22.2 + strip-json-comments: 3.1.1 + dev: true + + /@rushstack/ts-command-line@4.13.3: + resolution: {integrity: sha512-6aQIv/o1EgsC/+SpgUyRmzg2QIAL6sudEzw3sWzJKwWuQTc5XRsyZpyldfE7WAmIqMXDao9QG35/NYORjHm5Zw==} + dependencies: + '@types/argparse': 1.0.38 + argparse: 1.0.10 + colors: 1.2.5 + string-argv: 0.3.2 + dev: true + /@surma/rollup-plugin-off-main-thread@2.2.3: resolution: {integrity: sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ==} dependencies: @@ -2182,6 +2269,10 @@ packages: string.prototype.matchall: 4.0.8 dev: true + /@types/argparse@1.0.38: + resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} + dev: true + /@types/chai-subset@1.3.3: resolution: {integrity: sha512-frBecisrNGz+F4T6bcc+NLeolfiojh5FxW2klu669+8BARtyQv2C/GkNW6FUodVe4BroGMP/wER/YDGc7rEllw==} dependencies: @@ -3149,6 +3240,11 @@ packages: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} dev: true + /colors@1.2.5: + resolution: {integrity: sha512-erNRLao/Y3Fv54qUa0LBB+//Uf3YwMUmdJinN20yMXm9zdKKqH9wt7R9IIVZ+K7ShzfpLV/Zg8+VyrBJYB4lpg==} + engines: {node: '>=0.1.90'} + dev: true + /commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} dev: true @@ -3158,6 +3254,13 @@ packages: engines: {node: '>= 6'} dev: true + /commander@9.5.0: + resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} + engines: {node: ^12.20.0 || >=14} + requiresBuild: true + dev: true + optional: true + /comment-parser@1.3.1: resolution: {integrity: sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==} engines: {node: '>= 12.0.0'} @@ -3204,6 +3307,17 @@ packages: which: 1.3.1 dev: true + /cross-spawn@6.0.5: + resolution: {integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==} + engines: {node: '>=4.8'} + dependencies: + nice-try: 1.0.5 + path-key: 2.0.1 + semver: 5.7.1 + shebang-command: 1.2.0 + which: 1.3.1 + dev: true + /cross-spawn@7.0.3: resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} @@ -4338,6 +4452,11 @@ packages: resolve-from: 4.0.0 dev: true + /import-lazy@4.0.0: + resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==} + engines: {node: '>=8'} + dev: true + /imurmurhash@0.1.4: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} @@ -4651,6 +4770,14 @@ packages: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} dev: true + /js-yaml@3.13.1: + resolution: {integrity: sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==} + hasBin: true + dependencies: + argparse: 1.0.10 + esprima: 4.0.1 + dev: true + /js-yaml@3.14.1: resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} hasBin: true @@ -4689,6 +4816,10 @@ packages: hasBin: true dev: true + /json-parse-better-errors@1.0.2: + resolution: {integrity: sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==} + dev: true + /json-parse-even-better-errors@2.3.1: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} dev: true @@ -4786,6 +4917,16 @@ packages: uc.micro: 1.0.6 dev: true + /load-json-file@4.0.0: + resolution: {integrity: sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==} + engines: {node: '>=4'} + dependencies: + graceful-fs: 4.2.11 + parse-json: 4.0.0 + pify: 3.0.0 + strip-bom: 3.0.0 + dev: true + /load-tsconfig@0.2.5: resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -4824,6 +4965,14 @@ packages: resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} dev: true + /lodash.get@4.4.2: + resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} + dev: true + + /lodash.isequal@4.5.0: + resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} + dev: true + /lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} dev: true @@ -4999,6 +5148,11 @@ packages: resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} dev: true + /memorystream@0.3.1: + resolution: {integrity: sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==} + engines: {node: '>= 0.10.0'} + dev: true + /meow@6.1.1: resolution: {integrity: sha512-3YffViIt2QWgTy6Pale5QpopX/IvU3LPL03jOTqp6pGj3VjesdO/U8CuHMKpnQr4shCNCM5fd5XFFvIIl6JBHg==} engines: {node: '>=8'} @@ -5312,6 +5466,10 @@ packages: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} dev: true + /nice-try@1.0.5: + resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} + dev: true + /node-fetch@2.6.11: resolution: {integrity: sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==} engines: {node: 4.x || >=6.0.0} @@ -5342,6 +5500,22 @@ packages: engines: {node: '>=0.10.0'} dev: true + /npm-run-all@4.1.5: + resolution: {integrity: sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==} + engines: {node: '>= 4'} + hasBin: true + dependencies: + ansi-styles: 3.2.1 + chalk: 2.4.2 + cross-spawn: 6.0.5 + memorystream: 0.3.1 + minimatch: 3.1.2 + pidtree: 0.3.1 + read-pkg: 3.0.0 + shell-quote: 1.8.1 + string.prototype.padend: 3.1.4 + dev: true + /npm-run-path@4.0.1: resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} engines: {node: '>=8'} @@ -5486,6 +5660,14 @@ packages: is-hexadecimal: 1.0.4 dev: true + /parse-json@4.0.0: + resolution: {integrity: sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==} + engines: {node: '>=4'} + dependencies: + error-ex: 1.3.2 + json-parse-better-errors: 1.0.2 + dev: true + /parse-json@5.2.0: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} @@ -5506,6 +5688,11 @@ packages: engines: {node: '>=0.10.0'} dev: true + /path-key@2.0.1: + resolution: {integrity: sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==} + engines: {node: '>=4'} + dev: true + /path-key@3.1.1: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} @@ -5515,6 +5702,13 @@ packages: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true + /path-type@3.0.0: + resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==} + engines: {node: '>=4'} + dependencies: + pify: 3.0.0 + dev: true + /path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -5536,6 +5730,17 @@ packages: engines: {node: '>=8.6'} dev: true + /pidtree@0.3.1: + resolution: {integrity: sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==} + engines: {node: '>=0.10'} + hasBin: true + dev: true + + /pify@3.0.0: + resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==} + engines: {node: '>=4'} + dev: true + /pify@4.0.1: resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} engines: {node: '>=6'} @@ -5672,6 +5877,15 @@ packages: type-fest: 0.8.1 dev: true + /read-pkg@3.0.0: + resolution: {integrity: sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==} + engines: {node: '>=4'} + dependencies: + load-json-file: 4.0.0 + normalize-package-data: 2.5.0 + path-type: 3.0.0 + dev: true + /read-pkg@5.2.0: resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} engines: {node: '>=8'} @@ -5973,6 +6187,14 @@ packages: hasBin: true dev: true + /semver@7.3.8: + resolution: {integrity: sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + /semver@7.5.1: resolution: {integrity: sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==} engines: {node: '>=10'} @@ -6015,6 +6237,10 @@ packages: engines: {node: '>=8'} dev: true + /shell-quote@1.8.1: + resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} + dev: true + /shiki@0.14.2: resolution: {integrity: sha512-ltSZlSLOuSY0M0Y75KA+ieRaZ0Trf5Wl3gutE7jzLuIcWxLp5i/uEnLoQWNvgKXQ5OMpGkJnVMRLAuzjc0LJ2A==} dependencies: @@ -6138,6 +6364,11 @@ packages: mixme: 0.5.9 dev: true + /string-argv@0.3.2: + resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} + engines: {node: '>=0.6.19'} + dev: true + /string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -6160,6 +6391,15 @@ packages: side-channel: 1.0.4 dev: true + /string.prototype.padend@3.1.4: + resolution: {integrity: sha512-67otBXoksdjsnXXRUq+KMVTdlVRZ2af422Y0aTyTjVaoQkGr3mxl2Bc5emi7dOQ3OGVVQQskmLEWwFXwommpNw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.21.2 + dev: true + /string.prototype.trim@1.2.7: resolution: {integrity: sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==} engines: {node: '>= 0.4'} @@ -6737,6 +6977,11 @@ packages: spdx-expression-parse: 3.0.1 dev: true + /validator@13.9.0: + resolution: {integrity: sha512-B+dGG8U3fdtM0/aNK4/X8CXq/EcxU2WPrPEkJGslb47qyHsxmbggTWK0yEA4qnYVNF+nxNlN88o14hIcPmSIEA==} + engines: {node: '>= 0.10'} + dev: true + /vfile-message@3.1.4: resolution: {integrity: sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==} dependencies: @@ -7331,6 +7576,18 @@ packages: engines: {node: '>=12.20'} dev: true + /z-schema@5.0.5: + resolution: {integrity: sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==} + engines: {node: '>=8.0.0'} + hasBin: true + dependencies: + lodash.get: 4.4.2 + lodash.isequal: 4.5.0 + validator: 13.9.0 + optionalDependencies: + commander: 9.5.0 + dev: true + /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} dev: true diff --git a/turbo.json b/turbo.json index 035d57e3..6ca961d3 100644 --- a/turbo.json +++ b/turbo.json @@ -1,28 +1,32 @@ { "$schema": "https://turbo.build/schema.json", + "globalDependencies": [ + ".env", + "tsconfig.json", + "tsup.config.ts" + ], "pipeline": { + "api-extractor": { + "cache": false, + "dependsOn": ["^build"] + }, "build": { - "dependsOn": [ - "^build" - ], + "dependsOn": ["^build"], "outputs": [ ".vitepress/dist/**", "dist/**" ] }, + "coverage": { + "outputs": ["coverage/**"] + }, + "lint": {}, + "lint:fix": {}, "test": { "outputs": [] }, "test:watch": { "cache": false - }, - "coverage": {}, - "lint": {}, - "lint:fix": {} - }, - "globalDependencies": [ - ".env", - "tsconfig.json", - "tsup.config.ts" - ] + } + } } \ No newline at end of file