Skip to content

Commit

Permalink
Fix rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrruby committed Apr 21, 2024
1 parent 56b3053 commit 2ac1d6f
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 47 deletions.

This file was deleted.

5 changes: 2 additions & 3 deletions holo-key-manager-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
"version": "0.0.3",
"private": true,
"scripts": {
"buildCommon": "pnpm build:vite && pnpm build:script && pnpm build:fixBackgroundScriptForSigning && pnpm build:removeInline",
"buildCommon": "pnpm build:vite && pnpm build:script && pnpm build:removeInline",
"build": "pnpm buildCommon",
"buildDev": "pnpm buildCommon && pnpm build:buildForFirefoxDev",
"build:vite": "vite build",
"build:script": "cd scripts && pnpm build && cd ..",
"build:removeInline": "node build-scripts/removeInlineScript.cjs",
"build:replaceForFirefox": "node build-scripts/replaceForFirefox.cjs",
"build:buildForFirefoxDev": "node build-scripts/devFirefox.cjs",
"build:fixBackgroundScriptForSigning": "node build-scripts/fixBackgroundScriptForSigning.cjs",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
Expand All @@ -36,7 +35,7 @@
"@tanstack/svelte-query": "^5.28.6",
"clsx": "^2.1.0",
"file-saver": "^2.0.5",
"hcSeedBundle": "github:mrruby/hcSeedBundle#v0.0.5",
"hcSeedBundle": "github:mrruby/hcSeedBundle#v0.0.6",
"jszip": "^3.10.1",
"svelte": "^4.2.12",
"tailwindcss": "^3.4.1",
Expand Down
1 change: 1 addition & 0 deletions holo-key-manager-extension/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@rollup/plugin-inject": "^5.0.5",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"buffer": "^6.0.3",
"rollup-plugin-node-polyfills": "^0.2.1"
}
Expand Down
7 changes: 5 additions & 2 deletions holo-key-manager-extension/scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import commonjs from '@rollup/plugin-commonjs';
import inject from '@rollup/plugin-inject';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import replace from '@rollup/plugin-replace';
import terser from '@rollup/plugin-terser';
import nodePolyfills from 'rollup-plugin-node-polyfills';
import tscAlias from 'rollup-plugin-tsc-alias';
import typescript from 'rollup-plugin-typescript2';
Expand All @@ -22,9 +23,11 @@ const createConfig = (input, file) => ({
}),
replace({
preventAssignment: true,
global: 'self'
global: 'self',
'global.': 'self.'
}),
typescript()
typescript(),
terser()
]
});

Expand Down
2 changes: 1 addition & 1 deletion holo-key-manager-extension/static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Holo key manager",
"description": "A browser extension to manage holo keys",
"version": "0.0.48",
"version": "0.0.49",
"manifest_version": 3,
"action": {
"default_title": "Holo key manager",
Expand Down
93 changes: 83 additions & 10 deletions pnpm-lock.yaml

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

0 comments on commit 2ac1d6f

Please sign in to comment.