Skip to content

Commit

Permalink
fix(@formatjs/cli): upgrade vue deps
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho committed Sep 18, 2023
1 parent 6331408 commit 166d7ba
Show file tree
Hide file tree
Showing 8 changed files with 159 additions and 36 deletions.
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -67,8 +67,7 @@
"@typescript-eslint/parser": "^5.0.0",
"@typescript-eslint/typescript-estree": "^5.9.1",
"@unicode/unicode-13.0.0": "^1.0.6",
"@vue/compiler-core": "^3.2.45",
"@vue/compiler-sfc": "^3.2.45",
"@vue/compiler-core": "^3.3.4",
"@vue/test-utils": "2",
"babel-loader": "9",
"benchmark": "^2.1.4",
Expand Down Expand Up @@ -123,7 +122,7 @@
"typescript": "5.0.4",
"unicode-emoji-utils": "^1.1.1",
"unidiff": "^1.0.2",
"vue": "^3.2.45",
"vue": "^3.3.4",
"vue-class-component": "^8.0.0-rc.1",
"vue-eslint-parser": "^7.3.0",
"vue-loader": "17",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli-lib/BUILD
Expand Up @@ -32,7 +32,7 @@ SRCS = glob(["src/**/*.ts"]) + [
VUE_DEPS = [
"//:node_modules/@vue/compiler-core",
"//:node_modules/@babel/types",
"//:node_modules/@vue/compiler-sfc",
"//:node_modules/vue",
]

SRC_DEPS = [
Expand Down Expand Up @@ -84,7 +84,7 @@ esbuild(
srcs = [":dist-esm-esnext"],
entry_point = "lib_esnext/main.js",
external = [
"@vue/compiler-sfc",
"vue",
],
platform = "node",
target = "node16",
Expand Down
6 changes: 3 additions & 3 deletions packages/cli-lib/package.json
Expand Up @@ -47,11 +47,11 @@
"typescript": "^4.7 || 5"
},
"peerDependencies": {
"@vue/compiler-core": "^3.2.23",
"@vue/compiler-sfc": "^3.2.34"
"@vue/compiler-core": "^3.3.4",
"vue": "^3.3.4"
},
"peerDependenciesMeta": {
"@vue/compiler-sfc": {
"vue": {
"optional": true
},
"@vue/compiler-core": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-lib/src/vue_extractor.ts
@@ -1,4 +1,4 @@
import {parse} from '@vue/compiler-sfc'
import {parse} from 'vue/compiler-sfc'
import type {
TemplateChildNode,
SimpleExpressionNode,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/integration-tests/BUILD
Expand Up @@ -48,7 +48,7 @@ jest_test(
"//:node_modules/@babel/types",
"//:node_modules/@types/node",
"//:node_modules/@vue/compiler-core",
"//:node_modules/@vue/compiler-sfc",
"//:node_modules/vue",
"//:node_modules/fast-glob",
],
flaky = True,
Expand Down
13 changes: 13 additions & 0 deletions packages/cli/integration-tests/extract-vue/comp.vue
Expand Up @@ -7,6 +7,9 @@
})
}}
</p>
<div class="message" v-for="message in messages">
{{ message.content }}
</div>
</template>

<script>
Expand All @@ -17,6 +20,16 @@ intl.formatMessage({
</script>

<script lang="ts" setup>
const messages = ref([
{
id: 1,
content: 'Hey, check out this adorable video, bro!!',
},
{
id: 2,
content: 'https://youtu.be/dQw4w9WgXcQ',
},
]);
const intl = useIntl()
console.log(intl.formatMessage({defaultMessage: 'script setup'}))
</script>
4 changes: 2 additions & 2 deletions packages/cli/package.json
Expand Up @@ -36,10 +36,10 @@
"@formatjs/cli-lib": "workspace:*"
},
"peerDependencies": {
"@vue/compiler-sfc": "^3.2.34"
"vue": "^3.3.4"
},
"peerDependenciesMeta": {
"@vue/compiler-sfc": {
"vue": {
"optional": true
}
},
Expand Down

0 comments on commit 166d7ba

Please sign in to comment.