1.2.0 • Published 9 months ago

@lvce-editor/package-extension v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@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

1.2.0

9 months ago

1.1.0

10 months ago

1.0.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

2 years ago

0.0.5

3 years ago

0.0.4

3 years ago