Skip to content

Commit

Permalink
test: specifically resolve pm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Jan 2, 2025
1 parent 1ee6cef commit f5ce5b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ module.exports = on => {
alias[`@tiptap/${name.split('/').slice(0, -1).join('/')}$`] = path.resolve(`../packages/${name}/src/index.ts`)
})

// Specifically resolve the pm package
globSync('../packages/pm/*', { onlyDirectories: true })
.map(name => name.replace('../packages/pm', ''))
.forEach(name => {
alias[`@tiptap/pm${name.split('/').slice(0, -1).join('/')}$`] = path.resolve(`../packages/pm/${name}/index.ts`)
})

const options = {
webpackOptions: {
module: {
Expand Down

0 comments on commit f5ce5b9

Please sign in to comment.