Skip to content

Commit

Permalink
chore: list workspace packages in glob patterns (#5671)
Browse files Browse the repository at this point in the history
* chore: list workspace packages with glob patterns

* fixup! chore: list workspace packages with glob patterns
  • Loading branch information
UncleBill authored Feb 17, 2022
1 parent 05b3b8e commit 80b9dbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 35 deletions.
2 changes: 0 additions & 2 deletions packages/scripts/src/commands/new-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ task(createPackageInteractive, 'new-pkg', 'Create a new package interactively')

const INSERT_HERE = '// @masknet/scripts: insert-here'
async function createNewPackage({ path, npmName, type, pluginID }: PackageOptions) {
await changeFile(resolve(ROOT_PATH, 'pnpm-workspace.yaml'), (content) => content + ` - '${path}'\n`)

const packagePath = resolve(ROOT_PATH, path)
await ensureDir(packagePath)

Expand Down
35 changes: 2 additions & 33 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,10 @@
# If you need to speedup webpack build, please also add the new package builds into
# webpack config.resolve.alias
packages:
- 'packages/test-serializer'
- 'packages/empty'
- 'packages/polyfills'
- 'packages/*'
- 'packages/polyfills/types'
- 'packages/scripts'
- 'packages/dashboard'
- 'packages/mask'
- 'packages/injected-script'
- 'packages/gun-utils'
- 'packages/mask-sdk'
- 'packages/public-api'
- 'packages/shared-base'
- 'packages/shared'
- 'packages/web3-kit'
- 'packages/web3-providers'
- 'packages/web3-constants'
- 'packages/web3-contracts'
- 'packages/web3-shared/base'
- 'packages/web3-shared/evm'
- 'packages/web3-shared/flow'
- 'packages/web3-shared/solana'
- 'packages/storybook-shared'
- 'packages/icons'
- 'packages/theme'
- 'packages/plugin-infra'
- 'packages/plugins/template'
- 'packages/plugins/example'
- 'packages/plugins/Debugger'
- 'packages/plugins/Wallet'
- 'packages/plugins/Flow'
- 'packages/plugins/FileService'
- 'packages/plugins/DAO'
- 'packages/plugins/RSS3'
- 'packages/plugins/Solana'
- 'packages/external-plugin-previewer'
- 'packages/backup-format'
- 'packages/encryption'
- 'packages/provider-proxy'
- 'packages/plugins/*'

0 comments on commit 80b9dbd

Please sign in to comment.