Skip to content

Commit 9de3b4d

Browse files
committed
feat(release): scope package with '@hover'
1 parent 7bafff1 commit 9de3b4d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "hvr-scripts",
2+
"name": "@hover/hvr-scripts",
33
"version": "0.0.0-semantically-released",
44
"description": "CLI toolbox for common scripts for JavaScript + TypeScript projects",
55
"engines": {

Diff for: src/__tests__/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test('appDirectory is the dirname to the package.json', () => {
2424
})
2525

2626
test('resolveHvrScripts resolves to src/index.js when in the hvr-scripts package', () => {
27-
mockPkg({package: {name: 'hvr-scripts'}})
27+
mockPkg({package: {name: '@hover/hvr-scripts'}})
2828
expect(require('../utils').resolveHvrScripts()).toBe(
2929
require.resolve('../').replace(process.cwd(), '.'),
3030
)

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
let shouldThrow
33
try {
44
shouldThrow =
5-
require(`${process.cwd()}/package.json`).name === 'hvr-scripts' &&
5+
require(`${process.cwd()}/package.json`).name === '@hover/hvr-scripts' &&
66
Number(process.version.slice(1).split('.')[0]) < 8
77
} catch (error) {
88
// ignore

Diff for: src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const {package: pkg, path: pkgPath} = readPkgUp.sync({
1313
const appDirectory = path.dirname(pkgPath)
1414

1515
function resolveHvrScripts() {
16-
if (pkg.name === 'hvr-scripts') {
16+
if (pkg.name === '@hover/hvr-scripts') {
1717
return require.resolve('./').replace(process.cwd(), '.')
1818
}
1919
return resolveBin('hvr-scripts')

0 commit comments

Comments
 (0)