Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 25, 2024
1 parent f8567a3 commit c15fd92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default defineCommand({
// Add module builder metadata
moduleMeta.builder = {
[name]: version,
'unbuild': await readPackageJSON('unbuild').then(r => r.version).catch(() => 'unknown'),
unbuild: await readPackageJSON('unbuild').then(r => r.version).catch(() => 'unknown'),
}

// Write meta
Expand Down
14 changes: 7 additions & 7 deletions test/build.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ describe('module builder', () => {
const unbuildPkg = await readPackageJSON('unbuild')
expect(JSON.parse(meta)).toMatchObject(
{
"builder": {
"@nuxt/module-builder": version,
"unbuild": unbuildPkg.version,
builder: {
'@nuxt/module-builder': version,
'unbuild': unbuildPkg.version,
},
"configKey": "myModule",
"name": "my-module",
"version": "1.0.0",
}
configKey: 'myModule',
name: 'my-module',
version: '1.0.0',
},
)
})

Expand Down

0 comments on commit c15fd92

Please sign in to comment.