Comparing version 0.0.3 to 0.0.4
11
index.js
#!/usr/bin/env node | ||
import prompts from 'prompts'; | ||
import fs from 'fs'; | ||
import path from 'node:path'; | ||
import fs from 'node:fs'; | ||
import { fileURLToPath } from 'node:url'; | ||
@@ -37,5 +39,10 @@ const { componentName, template } = await prompts([ | ||
const templateDir = path.resolve( | ||
fileURLToPath(import.meta.url), | ||
`../templates/${template}` | ||
); | ||
console.log(); | ||
console.log('Creating the template'); | ||
fs.cpSync(`./templates/${template}`, `./${componentName}`, { | ||
fs.cpSync(templateDir, `./${componentName}`, { | ||
recursive: true, | ||
@@ -42,0 +49,0 @@ }); |
{ | ||
"name": "create-oc", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
232571
727
1