Skip to content

Commit 2bfe692

Browse files
committed
Fix build
Some changes let the build fail at the lerna and bundle steps. This is now fixed. - Indicate that Node 16 shall be used - Update Typescript and rollup-plugin-typescript2 versions - Add "mts" files to resolver - Remove unnecessary babel plugins in example app Also indicates in example app that it's for Vue 3
1 parent 6672704 commit 2bfe692

File tree

6 files changed

+8
-12
lines changed

6 files changed

+8
-12
lines changed

packages/example/babel.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
module.exports = {
22
presets: ['@vue/cli-plugin-babel/preset'],
3-
plugins: [
4-
'@babel/plugin-proposal-optional-chaining',
5-
'@babel/plugin-proposal-nullish-coalescing-operator',
6-
],
73
};

packages/example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"rimraf": "^4.4.1",
3838
"sass": "~1.32.0",
3939
"sass-loader": "^10.0.0",
40-
"typescript": "~4.5.5",
40+
"typescript": "~4.7.4",
4141
"vue-cli-plugin-vuetify": "~2.5.8",
4242
"vuex-pathify": "^3.0.0-beta",
4343
"webpack-plugin-vuetify": "^2.0.1"

packages/example/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8-
<title>JSON Forms Vue 2 Vuetify example</title>
8+
<title>JSON Forms Vue 3 Vuetify example</title>
99
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
1010
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
1111
</head>
1212
<body>
1313
<noscript>
14-
<strong>We're sorry but the JSON Forms Vue 2 Vuetify example doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
14+
<strong>We're sorry but the JSON Forms Vue 3 Vuetify example doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
1515
</noscript>
1616
<div id="app"></div>
1717
<!-- built files will be auto injected -->

packages/example/src/views/home/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<v-col cols="12" class="text-center">
1414
<h1 class="display-2 font-weight-bold mb-3">
15-
Welcome to JSON Forms Vue 2 Vuetify
15+
Welcome to JSON Forms Vue 3 Vuetify
1616
</h1>
1717

1818
<p class="subheading font-weight-regular">

packages/vue-vuetify/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@
8383
"rollup": "^3.20.2",
8484
"rollup-plugin-cleanup": "^3.2.1",
8585
"rollup-plugin-css-only": "^4.3.0",
86-
"rollup-plugin-typescript2": "^0.34.1",
86+
"rollup-plugin-typescript2": "^0.35.0",
8787
"rollup-plugin-visualizer": "^5.5.2",
8888
"rollup-plugin-vue": "^6.0.0",
89-
"typescript": "~4.5.5",
89+
"typescript": "~4.7.4",
9090
"vue": "^3.2.47",
9191
"vuetify": "^3.1.12"
9292
}

packages/vue-vuetify/rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const buildFormats = [
3131
},
3232
plugins: [
3333
resolve({
34-
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
34+
extensions: ['.js', '.jsx', '.ts', '.tsx', '.mts', '.vue'],
3535
}),
3636
css({
3737
output: `${packageJson.module.split('/')[1].split('.')[0]}.esm.css`,
@@ -68,7 +68,7 @@ const buildFormats = [
6868
},
6969
plugins: [
7070
resolve({
71-
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue'],
71+
extensions: ['.js', '.jsx', '.ts', '.tsx', '.mts', '.vue'],
7272
}),
7373
css({
7474
output: `${packageJson.module.split('/')[1].split('.')[0]}.cjs.css`,

0 commit comments

Comments
 (0)