create-vite-extra 1.0.0 → 1.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.
package/index.js CHANGED
@@ -559,7 +559,11 @@ function pkgFromUserAgent(userAgent) {
559
559
  * @param {{ isTs: boolean, isDeno: boolean }} options
560
560
  */
561
561
  function setupReactSwc(root, { isTs, isDeno }) {
562
- if (!isDeno) {
562
+ if (isDeno) {
563
+ editFile(path.resolve(root, 'deno.json'), (content) => {
564
+ return content.replace(/deno run -A/g, 'deno run -A --unstable')
565
+ })
566
+ } else {
563
567
  editFile(path.resolve(root, 'package.json'), (content) => {
564
568
  return content.replace(
565
569
  /"@vitejs\/plugin-react": ".+?"/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vite-extra",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Bjorn Lu",
@@ -7,8 +7,7 @@ export default defineConfig({
7
7
  build: {
8
8
  lib: {
9
9
  entry: 'src/my-element.js',
10
- formats: ['es'],
11
- fileName: 'app'
10
+ formats: ['es']
12
11
  },
13
12
  rollupOptions: {
14
13
  external: /^lit/
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Vite + Lit</title>
8
8
  <link rel="stylesheet" href="./src/index.css" />
9
- <script type="module" src="/src/my-element.js"></script>
9
+ <script type="module" src="/src/my-element.ts"></script>
10
10
  </head>
11
11
  <body>
12
12
  <my-element>
@@ -0,0 +1,6 @@
1
+ {
2
+ "compilerOptions": {
3
+ "useDefineForClassFields": false
4
+ },
5
+ "include": ["src/**/*.ts"]
6
+ }
@@ -6,9 +6,8 @@ import 'npm:lit@^2.5.0'
6
6
  export default defineConfig({
7
7
  build: {
8
8
  lib: {
9
- entry: 'src/my-element.js',
10
- formats: ['es'],
11
- fileName: 'app'
9
+ entry: 'src/my-element.ts',
10
+ formats: ['es']
12
11
  },
13
12
  rollupOptions: {
14
13
  external: /^lit/