Skip to content

Commit 7451940

Browse files
queervioletqueerviolet
queerviolet
authored and
queerviolet
committed
Get rid of the blaring name error (the name doesn't really matter anymore).
1 parent d208d28 commit 7451940

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

index.js

-20
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,6 @@ const {resolve} = require('path')
55
, pkg = require('./package.json')
66
, debug = require('debug')(`${pkg.name}:boot`)
77

8-
, nameError =
9-
`*******************************************************************
10-
You need to give your app a proper name.
11-
12-
The package name
13-
14-
${pkg.name}
15-
16-
isn't valid. If you don't change it, things won't work right.
17-
18-
Please change it in ${__dirname}/package.json
19-
~ xoxo, bones
20-
********************************************************************`
21-
22-
const reasonableName = /^[a-z0-9\-_]+$/
23-
// RegExp.test docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
24-
if (!reasonableName.test(pkg.name)) {
25-
console.error(chalk.red(nameError))
26-
}
27-
288
// This will load a secrets file from
299
//
3010
// ~/.your_app_name.env.js

0 commit comments

Comments
 (0)