create-block-app
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -10,2 +10,3 @@ #!/usr/bin/env node | ||
const path = require("path"); | ||
const untildify = require("untildify"); | ||
@@ -24,5 +25,6 @@ const exec = promisify(child_process.exec); | ||
const blockPath = process.argv[3] ?? blockName; | ||
// @todo: replace with `process.argv[3] ?? blockName` after dropping Node 12 support | ||
const blockPath = process.argv[3] ? process.argv[3] : blockName; | ||
const resolvedBlockPath = path.resolve(blockPath); | ||
const resolvedBlockPath = path.resolve(untildify(blockPath)); | ||
@@ -41,3 +43,5 @@ try { | ||
await pacote.extract(templatePackageName, resolvedBlockPath); | ||
await pacote.extract(templatePackageName, resolvedBlockPath, { | ||
registry: process.env.NPM_CONFIG_REGISTRY, | ||
}); | ||
@@ -62,2 +66,3 @@ console.log("Updating files..."); | ||
packageJson.description = `${blockName} block`; | ||
packageJson.blockprotocol.displayName = blockName; | ||
delete packageJson.homepage; | ||
@@ -64,0 +69,0 @@ delete packageJson.repository; |
{ | ||
"name": "create-block-app", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Create new https://blockprotocol.org blocks", | ||
@@ -27,3 +27,4 @@ "keywords": [ | ||
"dependencies": { | ||
"pacote": "12.0.2" | ||
"pacote": "12.0.2", | ||
"untildify": "4.0.0" | ||
}, | ||
@@ -30,0 +31,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3128
61
2
2
2
+ Addeduntildify@4.0.0
+ Addeduntildify@4.0.0(transitive)