@dword-design/base-config-web-extension 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,6 @@ import { pick } from 'lodash-es';
4
4
  export default (async ({
5
5
  browser
6
6
  }) => {
7
- var _config$css, _config$css2;
8
7
  const packageConfig = await loadPkg();
9
8
  const config = await fs.readJson('config.json').catch(() => ({}));
10
9
  const iconExists = await fs.exists('assets/icon.png');
@@ -29,10 +28,10 @@ export default (async ({
29
28
  ...(typeof config.action === 'object' && config.action)
30
29
  }
31
30
  }),
32
- ...(((await fs.exists('content.js')) || ((_config$css = config.css) === null || _config$css === void 0 ? void 0 : _config$css.length) > 0) && {
31
+ ...(((await fs.exists('content.js')) || config.css?.length > 0) && {
33
32
  content_scripts: [{
34
33
  js: ['content.js'],
35
- ...(((_config$css2 = config.css) === null || _config$css2 === void 0 ? void 0 : _config$css2.length) > 0 && {
34
+ ...(config.css?.length > 0 && {
36
35
  css: config.css
37
36
  }),
38
37
  matches: config.matches || ['<all_urls>']
@@ -48,6 +47,6 @@ export default (async ({
48
47
  })
49
48
  }
50
49
  }),
51
- ...pick(config, ['permissions', 'browser_specific_settings', 'css'])
50
+ ...pick(config, ['host_permissions', 'optional_host_permissions', 'optional_permissions', 'permissions', 'browser_specific_settings', 'css'])
52
51
  };
53
52
  });
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import depcheckParserSass from '@dword-design/depcheck-parser-sass';
2
- import endent from "@dword-design/functions/dist/endent.js";
2
+ import { endent } from '@dword-design/functions';
3
3
  import packageName from 'depcheck-package-name';
4
4
  import { createRequire } from 'module';
5
5
  import outputFiles from 'output-files';
@@ -40,8 +40,8 @@ export default (config => ({
40
40
  deployPlugins: [[packageName`@semantic-release/exec`, {
41
41
  prepareCmd: `yarn prepublishOnly && yarn prepublishOnly firefox && zip -r dist/chrome dist/chrome.zip && zip -r dist/firefox dist/firefox.zip && git archive --output=dist/firefox-sources.zip HEAD && ${packageName`publish-browser-extension`} --chrome-zip=dist/chrome.zip --firefox-zip=dist/firefox.zip --firefox-sources=dist/firefox-sources.zip`
42
42
  }]],
43
- editorIgnore: ['.eslintrc.json', 'dist'],
44
- gitignore: ['/.eslintrc.json', '/dist'],
43
+ editorIgnore: ['.eslintrc.json', 'dist', '/vite.config.js'],
44
+ gitignore: ['/.eslintrc.json', '/dist', '/vite.config.js'],
45
45
  isLockFileFixCommitType: true,
46
46
  lint,
47
47
  prepare: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-web-extension",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "repository": "dword-design/base-config-web-extension",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@dword-design/depcheck-parser-sass": "^4.0.4",
30
30
  "@dword-design/eslint-config": "^5.0.1",
31
- "@dword-design/functions": "^5.0.27",
31
+ "@dword-design/functions": "^6.0.0",
32
32
  "@semantic-release/exec": "^6.0.3",
33
33
  "@vitejs/plugin-vue": "^5.0.4",
34
34
  "depcheck-package-name": "^3.0.1",