create-qwik
Advanced tools
Comparing version 1.5.4 to 1.5.5-dev20240528185628
{ | ||
"name": "create-qwik", | ||
"description": "Interactive CLI for create Qwik projects and adding features.", | ||
"version": "1.5.4", | ||
"version": "1.5.5-dev20240528185628", | ||
"author": "Builder.io Team", | ||
@@ -6,0 +6,0 @@ "bin": "./create-qwik.cjs", |
@@ -19,4 +19,4 @@ { | ||
"devDependencies": { | ||
"@builder.io/qwik": "^1.5.4", | ||
"@builder.io/qwik-city": "^1.5.4", | ||
"@builder.io/qwik": "1.5.5-dev20240528185628", | ||
"@builder.io/qwik-city": "1.5.5-dev20240528185628", | ||
"@types/eslint": "^8.56.10", | ||
@@ -27,3 +27,3 @@ "@types/node": "^20.12.7", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-qwik": "^1.5.4", | ||
"eslint-plugin-qwik": "1.5.5-dev20240528185628", | ||
"prettier": "^3.2.5", | ||
@@ -30,0 +30,0 @@ "typescript": "5.4.5", |
@@ -75,2 +75,3 @@ /** | ||
) { | ||
let msg = ""; | ||
// Create an array 'duplicateDeps' by filtering devDependencies. | ||
@@ -82,5 +83,18 @@ // If a dependency also exists in dependencies, it is considered a duplicate. | ||
// include any known qwik packages | ||
const qwikPkg = Object.keys(dependencies).filter((value) => | ||
/qwik/i.test(value), | ||
); | ||
// any errors for missing "qwik-city-plan" | ||
// [PLUGIN_ERROR]: Invalid module "@qwik-city-plan" is not a valid package | ||
msg = `Move qwik packages ${qwikPkg.join(", ")} to devDependencies`; | ||
if (qwikPkg.length > 0) { | ||
throw new Error(msg); | ||
} | ||
// Format the error message with the duplicates list. | ||
// The `join` function is used to represent the elements of the 'duplicateDeps' array as a comma-separated string. | ||
const msg = ` | ||
msg = ` | ||
Warning: The dependency "${duplicateDeps.join(", ")}" is listed in both "devDependencies" and "dependencies". | ||
@@ -87,0 +101,0 @@ Please move the duplicated dependencies to "devDependencies" only and remove it from "dependencies" |
@@ -36,3 +36,3 @@ { | ||
"devDependencies": { | ||
"@builder.io/qwik": "1.5.4", | ||
"@builder.io/qwik": "1.5.5", | ||
"@types/eslint": "^8.56.10", | ||
@@ -39,0 +39,0 @@ "@types/node": "^20.12.7", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1926728
3284
2