diff --git a/config/dependencies.yaml b/config/dependencies.yaml index 452e4aa2cc6..28d578e56c4 100644 --- a/config/dependencies.yaml +++ b/config/dependencies.yaml @@ -151,6 +151,9 @@ rehype-jargon: _: 'unist-util-visit': '^4.1.0' 'hast-util-from-html': '^1.0.0' +rehype-highlight-lines: + _: + 'unist-util-remove': '^3.1.0' simon: peer: '@freesewing/brian': *freesewing diff --git a/config/exceptions.yaml b/config/exceptions.yaml index d36b15c4ae2..908304cb4b5 100644 --- a/config/exceptions.yaml +++ b/config/exceptions.yaml @@ -1,11 +1,13 @@ noNamespace: - rehype-jargon + - rehype-highlight-lines customBuild: - i18n - new-design - prettier-config - plugin-bundle - rehype-jargon + - rehype-highlight-lines skipTests: - theo packageJson: @@ -59,6 +61,8 @@ packageJson: files: - index.json - package.json + rehype-hightlight-lines: + private: true sandy: author: AlfaLyr (https://github.com/alfalyr) tiberius: *starf diff --git a/packages/rehype-highlight-lines/CHANGELOG.md b/packages/rehype-highlight-lines/CHANGELOG.md index f4d75831583..a776a3ed0f8 100644 --- a/packages/rehype-highlight-lines/CHANGELOG.md +++ b/packages/rehype-highlight-lines/CHANGELOG.md @@ -1,4 +1,4 @@ -# Change log for: @freesewing/rehype-highlight-lines +# Change log for: rehype-highlight-lines diff --git a/packages/rehype-highlight-lines/README.md b/packages/rehype-highlight-lines/README.md index cbdb2301b3d..acdbf1b91ad 100644 --- a/packages/rehype-highlight-lines/README.md +++ b/packages/rehype-highlight-lines/README.md @@ -1,13 +1,13 @@ ![FreeSewing](https://static.freesewing.org/banner.png)

@freesewing/rehype-highlight-lines on NPM + href="https://www.npmjs.com/package/rehype-highlight-lines" + title="rehype-highlight-lines on NPM" + >rehype-highlight-lines on NPM License: MIT

-# @freesewing/rehype-highlight-lines +# rehype-highlight-lines A Rehype plugin to add highlighted lines to code blocks @@ -65,7 +65,7 @@ A Rehype plugin to add highlighted lines to code blocks This repository is our *monorepo* holding all our NPM designs, plugins, other NPM packages, and (web)sites. -This folder holds: @freesewing/rehype-highlight-lines +This folder holds: rehype-highlight-lines If you're not entirely sure what to do or how to start, type this command: diff --git a/packages/rehype-highlight-lines/build.mjs b/packages/rehype-highlight-lines/build.mjs deleted file mode 100644 index 2f76b066047..00000000000 --- a/packages/rehype-highlight-lines/build.mjs +++ /dev/null @@ -1,35 +0,0 @@ -/* This script will build the package with esbuild */ -import esbuild from 'esbuild' -import pkg from './package.json' assert { type: 'json' } - -// Create banner based on package info -const banner = `/** - * ${pkg.name} | v${pkg.version} - * ${pkg.description} - * (c) ${new Date().getFullYear()} ${pkg.author} - * @license ${pkg.license} - */` - -// Shared esbuild options -const options = { - banner: { js: banner }, - bundle: true, - entryPoints: ['src/index.mjs'], - format: 'esm', - outfile: 'dist/index.mjs', - external: ['@freesewing'], - metafile: process.env.VERBOSE ? true : false, - minify: process.env.NO_MINIFY ? false : true, - sourcemap: true, -} - -// Let esbuild generate the build -let result -;(async () => { - result = await esbuild.build(options).catch(() => process.exit(1)) - - if (process.env.VERBOSE) { - const info = await esbuild.analyzeMetafile(result.metafile) - console.log(info) - } -})() diff --git a/packages/rehype-highlight-lines/data.mjs b/packages/rehype-highlight-lines/data.mjs index e8a501b6c2e..d4acfb002b5 100644 --- a/packages/rehype-highlight-lines/data.mjs +++ b/packages/rehype-highlight-lines/data.mjs @@ -1,4 +1,4 @@ // This file is auto-generated | All changes you make will be overwritten. -export const name = '@freesewing/rehype-highlight-lines' +export const name = 'rehype-highlight-lines' export const version = '3.0.0-alpha.2' export const data = { name, version } diff --git a/packages/rehype-highlight-lines/package.json b/packages/rehype-highlight-lines/package.json index 6f43271c5e1..38a63255103 100644 --- a/packages/rehype-highlight-lines/package.json +++ b/packages/rehype-highlight-lines/package.json @@ -1,5 +1,5 @@ { - "name": "@freesewing/rehype-highlight-lines", + "name": "rehype-highlight-lines", "version": "3.0.0-alpha.2", "description": "A Rehype plugin to add highlighted lines to code blocks", "author": "Joost De Cock (https://github.com/joostdecock)",