Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit b3411bf

Browse files
committed
refactor: align register with globals
1 parent 16e21eb commit b3411bf

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

jest.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module.exports = {
88
setupFiles: ['<rootDir>/test/unit/setup'],
99
moduleNameMapper: {
1010
'@nuxtjs/composition-api/dist/globals': '<rootDir>/src/globals',
11-
'@nuxtjs/composition-api/dist/runtime/register':
12-
'<rootDir>/src/runtime/register',
11+
'@nuxtjs/composition-api/dist/register': '<rootDir>/src/register',
1312
},
1413
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"./package.json": "./package.json",
2727
"./dist/babel-plugin": "./dist/babel-plugin.js",
2828
"./dist/globals": "./dist/globals.js",
29-
"./dist/runtime/templates/*": "./dist/runtime/templates/*",
30-
"./dist/runtime/register": "./dist/runtime/register.js"
29+
"./dist/register": "./dist/register.js",
30+
"./dist/runtime/templates/*": "./dist/runtime/templates/*"
3131
},
3232
"main": "./dist/index.js",
3333
"module": "./dist/index.mjs",

siroc.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default defineSirocConfig({
44
rollup: {
55
externals: [
66
'@nuxtjs/composition-api/dist/globals',
7-
'@nuxtjs/composition-api/dist/runtime/register',
7+
'@nuxtjs/composition-api/dist/register',
88
],
99
},
1010
})
File renamed without changes.

src/runtime/composables/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '@nuxtjs/composition-api/dist/runtime/register'
1+
import '@nuxtjs/composition-api/dist/register'
22

33
export { useAsync } from './async'
44
export { defineComponent } from './component'

test/fixture/nuxt.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ console.log('Testing', inDevelopment ? 'source' : 'built', 'module')
1515

1616
export default <NuxtConfig>{
1717
alias: {
18-
'@nuxtjs/composition-api/dist/runtime/register': join(
18+
'@nuxtjs/composition-api/dist/register': join(
1919
rootDir,
2020
inDevelopment ? 'src' : 'dist',
21-
'runtime/register'
21+
'register'
2222
),
2323
'@nuxtjs/composition-api/dist/globals': join(
2424
rootDir,

0 commit comments

Comments
 (0)