refactor: move modules under `modules/` (#437)

This commit is contained in:
Anthony Fu 2021-08-12 01:12:21 +08:00 committed by GitHub
parent 084b4e2123
commit c2e96d0b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
42 changed files with 15 additions and 11 deletions

View File

@ -3,6 +3,7 @@
"license": "MIT",
"workspaces": [
"packages/*",
"modules/*",
"examples/*",
"playground"
],
@ -21,7 +22,7 @@
"test": "yarn lint && yarn test:presets",
"test:presets": "mocha test/presets/*.mjs",
"test:compat": "TEST_COMPAT=1 yarn test:presets",
"test:unit": "mocha -r jiti/register packages/**/test/*.test.*",
"test:unit": "mocha -r jiti/register {packages,modules}/**/test/*.test.*",
"version": "yarn && git add yarn.lock"
},
"resolutions": {

View File

@ -21,7 +21,7 @@ if [[ ! -z ${NODE_AUTH_TOKEN} ]] ; then
fi
# Release packages
for p in packages/* ; do
for p in {packages,modules}/* ; do
pushd $p
echo "Publishing $p"
yarn npm publish --access public --tolerate-republish

View File

@ -17,5 +17,8 @@
"@nuxt/nitro"
]
},
"exclude": ["./packages/*/dist/*"]
"exclude": [
"./packages/*/dist/*",
"./modules/*/dist/*"
]
}

View File

@ -1291,9 +1291,9 @@ __metadata:
languageName: unknown
linkType: soft
"@nuxt/component-discovery@^0.2.0, @nuxt/component-discovery@workspace:packages/components":
"@nuxt/component-discovery@^0.2.0, @nuxt/component-discovery@workspace:modules/components":
version: 0.0.0-use.local
resolution: "@nuxt/component-discovery@workspace:packages/components"
resolution: "@nuxt/component-discovery@workspace:modules/components"
dependencies:
"@nuxt/kit": ^0.6.4
globby: ^11.0.4
@ -1335,9 +1335,9 @@ __metadata:
languageName: node
linkType: hard
"@nuxt/global-imports@^0.1.0, @nuxt/global-imports@workspace:packages/global-imports":
"@nuxt/global-imports@^0.1.0, @nuxt/global-imports@workspace:modules/global-imports":
version: 0.0.0-use.local
resolution: "@nuxt/global-imports@workspace:packages/global-imports"
resolution: "@nuxt/global-imports@workspace:modules/global-imports"
dependencies:
"@nuxt/kit": ^0.6.4
ufo: ^0.7.7
@ -1369,9 +1369,9 @@ __metadata:
languageName: unknown
linkType: soft
"@nuxt/meta@^0.1.0, @nuxt/meta@workspace:packages/meta":
"@nuxt/meta@^0.1.0, @nuxt/meta@workspace:modules/meta":
version: 0.0.0-use.local
resolution: "@nuxt/meta@workspace:packages/meta"
resolution: "@nuxt/meta@workspace:modules/meta"
dependencies:
"@nuxt/kit": ^0.6.4
"@vueuse/head": ^0.6.0
@ -1454,9 +1454,9 @@ __metadata:
languageName: unknown
linkType: soft
"@nuxt/pages@^0.3.0, @nuxt/pages@workspace:packages/pages":
"@nuxt/pages@^0.3.0, @nuxt/pages@workspace:modules/pages":
version: 0.0.0-use.local
resolution: "@nuxt/pages@workspace:packages/pages"
resolution: "@nuxt/pages@workspace:modules/pages"
dependencies:
"@nuxt/kit": ^0.6.4
globby: ^11.0.4