create-packer 1.43.9 → 1.43.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.43.9",
3
+ "version": "1.43.11",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -1,15 +1,8 @@
1
1
  import svgr from '@svgr/rollup'
2
2
  import type { StorybookConfig } from '@storybook/react-vite'
3
3
 
4
- function createStories(lib: string): string[] {
5
- return [
6
- `../packages/${lib}/src/**/*.mdx`,
7
- `../packages/${lib}/src/**/*.stories.@(js|jsx|ts|tsx)`
8
- ]
9
- }
10
-
11
4
  const config: StorybookConfig = {
12
- stories: [...createStories('ts'), ...createStories('react')],
5
+ stories: [`../packages/**/*.mdx`, `../packages/**/*.stories.@(js|jsx|ts|tsx)`],
13
6
  addons: [
14
7
  '@storybook/addon-links',
15
8
  '@storybook/addon-essentials',
@@ -43,12 +43,12 @@
43
43
  "devDependencies": {
44
44
  "@changesets/cli": "2.26.2",
45
45
  "@eslint/js": "9.15.0",
46
- "@storybook/addon-essentials": "8.5.0",
47
- "@storybook/addon-interactions": "8.5.0",
48
- "@storybook/addon-links": "8.5.0",
49
- "@storybook/blocks": "8.5.0",
50
- "@storybook/react": "8.5.0",
51
- "@storybook/react-vite": "8.5.0",
46
+ "@storybook/addon-essentials": "8.6.12",
47
+ "@storybook/addon-interactions": "8.6.12",
48
+ "@storybook/addon-links": "8.6.12",
49
+ "@storybook/blocks": "8.6.12",
50
+ "@storybook/react": "8.6.12",
51
+ "@storybook/react-vite": "8.6.12",
52
52
  "@storybook/testing-library": "0.2.2",
53
53
  "@svgr/rollup": "8.1.0",
54
54
  "@types/node": "20.3.2",
@@ -60,7 +60,7 @@
60
60
  "eslint-plugin-import": "2.31.0",
61
61
  "eslint-plugin-react": "7.37.2",
62
62
  "eslint-plugin-react-hooks": "5.1.0",
63
- "eslint-plugin-storybook": "0.11.2",
63
+ "eslint-plugin-storybook": "0.12.0",
64
64
  "globals": "15.12.0",
65
65
  "inquirer": "^8.1.2",
66
66
  "postcss": "8.4.31",
@@ -72,7 +72,7 @@
72
72
  "prop-types": "15.8.1",
73
73
  "react": "18.2.0",
74
74
  "react-dom": "18.2.0",
75
- "storybook": "8.5.0",
75
+ "storybook": "8.6.12",
76
76
  "stylelint": "16.10.0",
77
77
  "stylelint-config-standard-scss": "13.0.0",
78
78
  "ts-node": "10.9.1",
@@ -10,10 +10,11 @@ const meta: Meta<typeof Button> = {
10
10
  backgroundColor: { control: 'color' }
11
11
  }
12
12
  }
13
- type Story = StoryObj<typeof meta>
14
13
 
15
14
  export default meta
16
15
 
16
+ type Story = StoryObj<typeof Button>
17
+
17
18
  // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
18
19
  export const Primary: Story = {
19
20
  args: {
@@ -1,5 +1,11 @@
1
1
  {
2
2
  "extends": "stylelint-config-standard-scss",
3
+ "overrides": [
4
+ {
5
+ "files": ["*.html", "**/*.html", "*.vue", "**/*.vue"],
6
+ "customSyntax": "postcss-html"
7
+ }
8
+ ],
3
9
  "rules": {
4
10
  "comment-empty-line-before": "never",
5
11
  "no-empty-source": null,
@@ -99,6 +99,7 @@ export default tseslint.config([
99
99
  'vue/html-indent': ['error', 4],
100
100
  'vue/require-default-prop': 'off',
101
101
  'vue/one-component-per-file': 'off',
102
+ 'vue/no-dupe-keys': 'off',
102
103
  'vue/html-self-closing': [
103
104
  'error',
104
105
  {
@@ -49,6 +49,7 @@
49
49
  "husky": "9.1.6",
50
50
  "inquirer": "8.1.2",
51
51
  "postcss": "8.4.38",
52
+ "postcss-html": "1.8.0",
52
53
  "postcss-import": "16.1.0",
53
54
  "postcss-nesting": "12.1.1",
54
55
  "prettier": "3.2.5",
@@ -7,6 +7,7 @@
7
7
  "moduleResolution": "Node",
8
8
  "strict": true,
9
9
  "jsx": "preserve",
10
+ "jsxImportSource": "vue",
10
11
  "sourceMap": true,
11
12
  "resolveJsonModule": true,
12
13
  "isolatedModules": true,
@@ -1,5 +1,11 @@
1
1
  {
2
2
  "extends": "stylelint-config-standard-scss",
3
+ "overrides": [
4
+ {
5
+ "files": ["*.html", "**/*.html", "*.vue", "**/*.vue"],
6
+ "customSyntax": "postcss-html"
7
+ }
8
+ ],
3
9
  "rules": {
4
10
  "comment-empty-line-before": "never",
5
11
  "no-empty-source": null,
@@ -90,6 +90,7 @@ export default tseslint.config([
90
90
  'vue/html-indent': ['error', 4],
91
91
  'vue/require-default-prop': 'off',
92
92
  'vue/one-component-per-file': 'off',
93
+ 'vue/no-dupe-keys': 'off',
93
94
  'vue/html-self-closing': [
94
95
  'error',
95
96
  {
@@ -54,6 +54,7 @@
54
54
  "husky": "9.1.6",
55
55
  "inquirer": "8.1.2",
56
56
  "postcss": "8.4.38",
57
+ "postcss-html": "1.8.0",
57
58
  "postcss-import": "16.1.0",
58
59
  "postcss-nesting": "12.1.1",
59
60
  "prettier": "3.2.5",
@@ -7,6 +7,7 @@
7
7
  "moduleResolution": "Node",
8
8
  "strict": true,
9
9
  "jsx": "preserve",
10
+ "jsxImportSource": "vue",
10
11
  "sourceMap": true,
11
12
  "resolveJsonModule": true,
12
13
  "isolatedModules": true,
@@ -6,17 +6,17 @@ export type messageType = {
6
6
  }
7
7
 
8
8
  export const { sendMessage, onMessage } = defineExtensionMessaging<messageType>()
9
-
10
9
  export async function sendToAllContent<A extends keyof messageType>(
11
10
  action: A,
12
11
  data?: Parameters<messageType[A]>[0]
13
12
  ) {
14
13
  const tabs = await chrome.tabs.query({ url: CONTENT_MATCHES })
15
- return await Promise.all(
14
+ const result = await Promise.all(
16
15
  tabs.map(tab => {
17
16
  return sendMessage(action, data as never, { tabId: tab.id! })
18
17
  })
19
18
  )
19
+ return result
20
20
  }
21
21
 
22
22
  export async function sendToCurrentContent<A extends keyof messageType>(
@@ -24,5 +24,6 @@ export async function sendToCurrentContent<A extends keyof messageType>(
24
24
  data?: Parameters<messageType[A]>[0]
25
25
  ) {
26
26
  const tabs = await chrome.tabs.query({ active: true, url: CONTENT_MATCHES })
27
- return await sendMessage(action, data as never, { tabId: tabs[0].id! })
27
+ const result = await sendMessage(action, data as never, { tabId: tabs[0].id! })
28
+ return result
28
29
  }