Skip to content

Commit

Permalink
Merge pull request #27 from webdevnerdstuff/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
webdevnerdstuff authored Nov 9, 2023
2 parents ef20b95 + 917b5ad commit e8cd85c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/vue3-code-block.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vue3-code-block.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wdns/vue3-code-block",
"version": "2.2.13",
"version": "2.2.14",
"description": "Vue 3 CodeBlock - Highlight your code with ease using this syntax highlighting component powered by PrismJS or Highlight.js.",
"private": false,
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Sections/InstallationSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ const selectedLibrary = inject('selectedLibrary');
const selectedTheme = inject('selectedTheme');
const styleData = inject('styleData');
const pnpmCode = 'pnpm add vue3-code-block';
const npmCode = 'npm i vue3-code-block';
const pnpmCode = 'pnpm add @wdns/vue3-code-block';
const npmCode = 'npm i @wdns/vue3-code-block';
</script>
10 changes: 7 additions & 3 deletions vite.build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ import typescript from 'rollup-plugin-typescript2';
import vue from '@vitejs/plugin-vue';
import { viteStaticCopy } from 'vite-plugin-static-copy';

const scopedPackageName = pkg.name;
const packageName = scopedPackageName.split('/')[1];

const banner = `/**
* @name ${pkg.name}
* @name ${scopedPackageName}
* @version ${pkg.version}
* @description ${pkg.description}
* @author ${pkg.author}
Expand All @@ -24,14 +26,16 @@ const banner = `/**
*/
`;



export default defineConfig({
publicDir: false,
build: {
lib: {
entry: './src/plugin/index.ts',
name: pkg.name,
name: packageName,
formats: ['es', 'cjs'],
fileName: format => `${pkg.name}.${format}.js`,
fileName: format => `${packageName}.${format}.js`,
},
rollupOptions: {
input: {
Expand Down

0 comments on commit e8cd85c

Please sign in to comment.