@lvce-editor/package-extension

1.2.0 • Public • Published

@lvce-editor/package-extension

Utility package for packaging an extension into a tar.br file.

Usage

import { copyFiles, packageExtension } from '@lvce-editor/package-extension'
import path, { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'

const __dirname = dirname(fileURLToPath(import.meta.url))
const root = path.join(__dirname, '..')

await copyFiles({
  root,
  files: ['README.md', 'extension.json', 'languageConfiguration.json', 'src'],
})

await packageExtension({
  highestCompression: true,
  inDir: join(root, 'dist'),
  outFile: join(root, 'extension.tar.br'),
})

Gitpod

Open in Gitpod

Readme

Keywords

none

Package Sidebar

Install

npm i @lvce-editor/package-extension

Weekly Downloads

88

Version

1.2.0

License

MIT

Unpacked Size

6.41 kB

Total Files

10

Last publish

Collaborators

  • levivilet