1
0
Fork 0

chore(rehype-highlight-lines): Keep package private (for now)

This commit is contained in:
Joost De Cock 2022-10-11 01:41:14 +02:00
parent fd8c11584f
commit b29fc57717
7 changed files with 17 additions and 45 deletions

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,4 @@
# Change log for: @freesewing/rehype-highlight-lines
# Change log for: rehype-highlight-lines

View file

@ -1,13 +1,13 @@
![FreeSewing](https://static.freesewing.org/banner.png)
<p align='center'><a
href="https://www.npmjs.com/package/@freesewing/rehype-highlight-lines"
title="@freesewing/rehype-highlight-lines on NPM"
><img src="https://img.shields.io/npm/v/@freesewing/rehype-highlight-lines.svg"
alt="@freesewing/rehype-highlight-lines on NPM"/>
href="https://www.npmjs.com/package/rehype-highlight-lines"
title="rehype-highlight-lines on NPM"
><img src="https://img.shields.io/npm/v/rehype-highlight-lines.svg"
alt="rehype-highlight-lines on NPM"/>
</a><a
href="https://opensource.org/licenses/MIT"
title="License: MIT"
><img src="https://img.shields.io/npm/l/@freesewing/rehype-highlight-lines.svg?label=License"
><img src="https://img.shields.io/npm/l/rehype-highlight-lines.svg?label=License"
alt="License: MIT"/>
</a><a
href="https://deepscan.io/dashboard#view=project&tid=2114&pid=2993&bid=23256"
@ -46,7 +46,7 @@
alt="Follow @freesewing_org on Twitter"/>
</a></p>
# @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:

View file

@ -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)
}
})()

View file

@ -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 }

View file

@ -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 <joost@joost.at> (https://github.com/joostdecock)",