create-ssam
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -238,2 +238,3 @@ import fs from 'fs'; | ||
"../..", | ||
`templates`, | ||
`template-${option}` | ||
@@ -253,5 +254,3 @@ ); | ||
} | ||
const pkg = JSON.parse( | ||
fs.readFileSync(path.join(templateDir, `package.json`), "utf-8") | ||
); | ||
const pkg = JSON.parse(fs.readFileSync(path.join(templateDir, `package.json`), "utf-8")); | ||
pkg.name = packageName || getProjectName(); | ||
@@ -293,6 +292,4 @@ write("package.json", JSON.stringify(pkg, null, 2)); | ||
} | ||
console.log( | ||
` | ||
Find the latest updates of Ssam at http://github.com/cdaein/ssam` | ||
); | ||
console.log(` | ||
Find the latest updates of Ssam at http://github.com/cdaein/ssam`); | ||
console.log(); | ||
@@ -305,5 +302,3 @@ } | ||
function isValidPackageName(projectName) { | ||
return /^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test( | ||
projectName | ||
); | ||
return /^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test(projectName); | ||
} | ||
@@ -310,0 +305,0 @@ function toValidPackageName(projectName) { |
{ | ||
"name": "create-ssam", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Quickstart a creative coding sketch with ssam", | ||
@@ -10,3 +10,3 @@ "type": "module", | ||
"files": [ | ||
"template-*", | ||
"templates", | ||
"dist", | ||
@@ -13,0 +13,0 @@ "bin" |
@@ -30,2 +30,9 @@ # create-ssam | ||
## Test Locally | ||
- `npm run build` | ||
- `npm link` to make it available locally | ||
- on Desktop, `node ~/path/to/bin/create-ssam.js` | ||
- follow setup instructions. | ||
## License | ||
@@ -32,0 +39,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
72501
42
6
889