Skip to content

Commit 967da35

Browse files
authored
Merge pull request #15 from guocaoyi/fix/0.8.2
merge(0.8.2): merge fix/0.8.2 to origin main
2 parents 0ad9d95 + c103b6f commit 967da35

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Summary
99
5. version timestamp follow the yyyy.MM.dd format
1010
```
1111

12+
## 0.8.2 [2023.03.09]
13+
14+
- fix: template vanilla-js initial error(remove `@vitejs/plugin-react` dependency)
15+
- fix: `yarn create` error with `--template` options
16+
1217
## 0.8.1 [2022.09.09]
1318

1419
- docs: add zn_CN readme

index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@ async function init() {
322322
now: new Date().format('yyyy.MM.dd'),
323323
//@ts-ignore
324324
nowYear: new Date().format('yyyy'),
325-
framework: (framework.name || '').replace(/\S/, (str: string) => str.toUpperCase()),
325+
framework: (framework?.name ?? template ?? '').replace(/\S/, (str: string) =>
326+
str.toUpperCase(),
327+
),
326328
}
327329

328330
const write = (file: string, content?: string | NodeJS.ArrayBufferView) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-chrome-ext",
3-
"version": "0.8.1",
3+
"version": "0.8.2",
44
"type": "module",
55
"description": "Scaffolding your chrome extension, multiple boilerplates supported!",
66
"author": "yalda",

template-vanilla-js/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"dependencies": {},
2424
"devDependencies": {
2525
"@crxjs/vite-plugin": "^1.0.12",
26-
"@vitejs/plugin-react": "^1.3.2",
2726
"prettier": "^2.7.1",
2827
"vite": "^2.9.13"
2928
}

template-vanilla-js/vite.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { defineConfig } from 'vite'
22
import { crx } from '@crxjs/vite-plugin'
3-
import react from '@vitejs/plugin-react'
43

54
import manifest from './src/manifest.js'
65

@@ -17,6 +16,6 @@ export default defineConfig(({ mode }) => {
1716
},
1817
},
1918

20-
plugins: [crx({ manifest }), react()],
19+
plugins: [crx({ manifest })],
2120
}
2221
})

0 commit comments

Comments
 (0)