Skip to content

Commit

Permalink
refactor: move modules under modules/ (nuxt#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Aug 11, 2021
1 parent 084b4e2 commit c2e96d0
Show file tree
Hide file tree
Showing 42 changed files with 15 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"license": "MIT",
"workspaces": [
"packages/*",
"modules/*",
"examples/*",
"playground"
],
Expand All @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/release-edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
"@nuxt/nitro"
]
},
"exclude": ["./packages/*/dist/*"]
"exclude": [
"./packages/*/dist/*",
"./modules/*/dist/*"
]
}
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c2e96d0

Please sign in to comment.