nimiq-branding-cli 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/nq.js +3 -0
- package/package.json +1 -1
package/bin/nq.js
CHANGED
|
@@ -261,6 +261,9 @@ const CHECKLIST = [
|
|
|
261
261
|
|
|
262
262
|
async function cmdNew(name, flags) {
|
|
263
263
|
if (!name || !/^[a-z][a-z0-9-]*$/.test(name)) throw new Error('nq new <kebab-case-name>');
|
|
264
|
+
if (ROOT.includes('node_modules') || ROOT.includes('_npx')) {
|
|
265
|
+
throw new Error('nq new scaffolds a component INTO the registry repo — clone it first:\n git clone https://github.com/Andjroo111/nimiq-branding-cli\nthen run nq new from that checkout.');
|
|
266
|
+
}
|
|
264
267
|
const dir = join(ROOT, 'registry', 'components', name);
|
|
265
268
|
if (existsSync(dir)) throw new Error(`component "${name}" already exists`);
|
|
266
269
|
const pascal = name.split('-').map(w => w[0].toUpperCase() + w.slice(1)).join('');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nimiq-branding-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "nq \u2014 pixel-verified Nimiq UI component registry + CLI. 39 components (Vue 3 + plain HTML) diffed against the real Nimiq apps, plus the team's real asset library. Unofficial community tool.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|