Skip to content

Commit

Permalink
build(deps-dev): bump prettier from 2.8.8 to 3.0.0 (#484)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump prettier from 2.8.8 to 3.0.0

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.8.8...3.0.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix files format with Prettier v3 and remove .prettierignore which is no longer required

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Felipe Santos <felipecassiors@gmail.com>
  • Loading branch information
dependabot[bot] and felipecrs authored Jul 5, 2023
1 parent 74f116e commit 687b51d
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 30 deletions.
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function verifyConditions(pluginConfig, { logger, cwd }) {

async function prepare(
pluginConfig,
{ nextRelease: { version }, logger, cwd }
{ nextRelease: { version }, logger, cwd },
) {
if (!verified) {
await verifyVsce(pluginConfig, { logger, cwd });
Expand All @@ -25,14 +25,14 @@ async function prepare(
version,
pluginConfig.packageVsix,
logger,
cwd
cwd,
);
prepared = true;
}

async function publish(
pluginConfig,
{ nextRelease: { version }, logger, cwd }
{ nextRelease: { version }, logger, cwd },
) {
if (!verified) {
await verifyVsce(pluginConfig, { logger, cwd });
Expand All @@ -45,7 +45,7 @@ async function publish(
version,
pluginConfig.packageVsix,
logger,
cwd
cwd,
);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = async (version, packageVsix, logger, cwd) => {
if (packageVsix || ovsxEnabled) {
if (!packageVsix && ovsxEnabled) {
logger.log(
'Packaging to VSIX even though `packageVsix` is not set as publish to OpenVSX is enabled.'
'Packaging to VSIX even though `packageVsix` is not set as publish to OpenVSX is enabled.',
);
}

Expand Down
4 changes: 2 additions & 2 deletions lib/verify-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = async (logger, cwd) => {
if (!process.env.VSCE_PAT) {
throw new SemanticReleaseError(
'No vsce personal access token specified (set the `VSCE_PAT` environment variable).',
'ENOVSCEPAT'
'ENOVSCEPAT',
);
}

Expand All @@ -18,7 +18,7 @@ module.exports = async (logger, cwd) => {
} catch (e) {
throw new SemanticReleaseError(
`Invalid vsce personal access token. Additional information:\n\n${e}`,
'EINVALIDVSCETOKEN'
'EINVALIDVSCETOKEN',
);
}
};
6 changes: 3 additions & 3 deletions lib/verify-ovsx-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ module.exports = async (logger, cwd) => {

if (!isOvsxEnabled()) {
logger.log(
'Skipping verification of ovsx personal token because the `OVSX_PAT` environment variable is not set.\n\nDid you know you can easily start publishing to OpenVSX with `semantic-release-vsce`?\nLearn more at https://github.com/felipecrs/semantic-release-vsce#publishing-to-openvsx'
'Skipping verification of ovsx personal token because the `OVSX_PAT` environment variable is not set.\n\nDid you know you can easily start publishing to OpenVSX with `semantic-release-vsce`?\nLearn more at https://github.com/felipecrs/semantic-release-vsce#publishing-to-openvsx',
);
return;
}

if (!process.env.OVSX_PAT) {
throw new SemanticReleaseError(
'Empty ovsx personal access token specified.',
'EINVALIDOVSXPAT'
'EINVALIDOVSXPAT',
);
}

Expand All @@ -26,7 +26,7 @@ module.exports = async (logger, cwd) => {
} catch (e) {
throw new SemanticReleaseError(
`Invalid ovsx personal access token. Additional information:\n\n${e}`,
'EINVALIDOVSXPAT'
'EINVALIDOVSXPAT',
);
}
};
8 changes: 4 additions & 4 deletions lib/verify-pkg.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = async () => {
if (!fs.existsSync('./package.json')) {
throw new SemanticReleaseError(
'The `package.json` was not found. A `package.json` is required to release with vsce.',
'ENOPKG'
'ENOPKG',
);
}

Expand All @@ -19,7 +19,7 @@ module.exports = async () => {
} catch (error) {
throw new SemanticReleaseError(
'The `package.json` seems to be invalid.',
'EINVALIDPKG'
'EINVALIDPKG',
);
}

Expand All @@ -28,13 +28,13 @@ module.exports = async () => {
if (!name) {
throw new SemanticReleaseError(
'No `name` found in `package.json`.',
'ENOPKGNAME'
'ENOPKGNAME',
);
}
if (!publisher) {
throw new SemanticReleaseError(
'No `publisher` found in `package.json`.',
'ENOPUBLISHER'
'ENOPUBLISHER',
);
}
};
4 changes: 2 additions & 2 deletions lib/verify-target.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = async () => {
if (!process.env.VSCE_TARGET) {
throw new SemanticReleaseError(
'Empty vsce target specified.',
'EINVALIDVSCETARGET'
'EINVALIDVSCETARGET',
);
}

Expand All @@ -24,7 +24,7 @@ module.exports = async () => {
`Unsupported vsce target: ${
process.env.VSCE_TARGET
}. Available targets: ${Object.values(targets).join(', ')}`,
'EUNSUPPORTEDVSCETARGET'
'EUNSUPPORTEDVSCETARGET',
);
}
}
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"husky": "^8.0.2",
"lint-staged": "^13.0.3",
"nyc": "^15.1.0",
"prettier": "2.8.8",
"prettier": "3.0.0",
"proxyquire": "^2.1.3",
"semantic-release": "^21.0.1",
"sinon": "^15.0.0"
Expand Down
6 changes: 3 additions & 3 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test('verifyConditions', async (t) => {
verifyVsceStub.calledOnceWith(pluginConfig, {
logger: semanticReleasePayload.logger,
cwd: semanticReleasePayload.cwd,
})
}),
);
});

Expand All @@ -63,7 +63,7 @@ test('prepare and unverified', async (t) => {
verifyVsceStub.calledOnceWith(pluginConfig, {
logger: semanticReleasePayload.logger,
cwd: semanticReleasePayload.cwd,
})
}),
);
t.deepEqual(vscePrepareStub.getCall(0).args, [
semanticReleasePayload.nextRelease.version,
Expand Down Expand Up @@ -166,7 +166,7 @@ test('it does not publish the package if publishing is disabled', async (t) => {

await verifyConditions(
{ ...pluginConfig, publish: false },
semanticReleasePayload
semanticReleasePayload,
);
await prepare({ ...pluginConfig, publish: false }, semanticReleasePayload);
await publish({ ...pluginConfig, publish: false }, semanticReleasePayload);
Expand Down

0 comments on commit 687b51d

Please sign in to comment.