create-qwik
Advanced tools
Comparing version 1.5.2 to 1.5.3-dev20240507162440
{ | ||
"name": "create-qwik", | ||
"description": "Interactive CLI for create Qwik projects and adding features.", | ||
"version": "1.5.2", | ||
"version": "1.5.3-dev20240507162440", | ||
"author": "Builder.io Team", | ||
"bin": "./create-qwik.cjs", | ||
"bugs": "https://github.com/BuilderIO/qwik/issues", | ||
"bugs": "https://github.com/QwikDev/qwik/issues", | ||
"devDependencies": { | ||
@@ -38,5 +38,5 @@ "@clack/prompts": "^0.7.0", | ||
"type": "git", | ||
"url": "https://github.com/BuilderIO/qwik.git", | ||
"url": "https://github.com/QwikDev/qwik.git", | ||
"directory": "packages/create-qwik" | ||
} | ||
} |
@@ -19,14 +19,14 @@ { | ||
"devDependencies": { | ||
"@builder.io/qwik": "^1.5.2", | ||
"@builder.io/qwik-city": "^1.5.2", | ||
"@types/eslint": "^8.56.6", | ||
"@types/node": "^20.11.30", | ||
"@typescript-eslint/eslint-plugin": "^7.3.1", | ||
"@typescript-eslint/parser": "^7.3.1", | ||
"@builder.io/qwik": "1.5.3-dev20240507162440", | ||
"@builder.io/qwik-city": "1.5.3-dev20240507162440", | ||
"@types/eslint": "^8.56.10", | ||
"@types/node": "^20.12.7", | ||
"@typescript-eslint/eslint-plugin": "^7.7.1", | ||
"@typescript-eslint/parser": "^7.7.1", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-qwik": "^1.5.2", | ||
"eslint-plugin-qwik": "1.5.3-dev20240507162440", | ||
"prettier": "^3.2.5", | ||
"typescript": "5.3.3", | ||
"typescript": "5.4.5", | ||
"undici": "*", | ||
"vite": "^5.1.6", | ||
"vite": "^5.2.10", | ||
"vite-tsconfig-paths": "^4.2.1" | ||
@@ -33,0 +33,0 @@ }, |
@@ -5,3 +5,3 @@ # Qwik City App ⚡️ | ||
- [Discord](https://qwik.dev/chat) | ||
- [Qwik GitHub](https://github.com/BuilderIO/qwik) | ||
- [Qwik GitHub](https://github.com/QwikDev/qwik) | ||
- [@QwikDev](https://twitter.com/QwikDev) | ||
@@ -8,0 +8,0 @@ - [Vite](https://vitejs.dev/) |
@@ -12,3 +12,3 @@ { | ||
"resolveJsonModule": true, | ||
"moduleResolution": "node", | ||
"moduleResolution": "Bundler", | ||
"esModuleInterop": true, | ||
@@ -20,3 +20,2 @@ "skipLibCheck": true, | ||
"noEmit": true, | ||
"types": ["node", "vite/client"], | ||
"paths": { | ||
@@ -23,0 +22,0 @@ "~/*": ["./src/*"] |
@@ -11,7 +11,9 @@ /** | ||
type PkgDep = Record<string, string>; | ||
const { dependencies = {}, devDependencies = {} } = pkg as any as { | ||
dependencies: Record<string, string>; | ||
devDependencies: Record<string, string>; | ||
dependencies: PkgDep; | ||
devDependencies: PkgDep; | ||
[key: string]: unknown; | ||
}; | ||
errorOnDuplicatesPkgDeps(devDependencies, dependencies); | ||
@@ -30,16 +32,20 @@ /** | ||
}, | ||
// This tells Vite how to bundle the server code. | ||
ssr: | ||
command === "build" && mode === "production" | ||
? { | ||
// All dev dependencies should be bundled in the server build | ||
noExternal: Object.keys(devDependencies), | ||
// Anything marked as a dependency will not be bundled | ||
// These should only be production binary deps (including deps of deps), CLI deps, and their module graph | ||
// If a dep-of-dep needs to be external, add it here | ||
// For example, if something uses `bcrypt` but you don't have it as a dep, you can write | ||
// external: [...Object.keys(dependencies), 'bcrypt'] | ||
external: Object.keys(dependencies), | ||
} | ||
: undefined, | ||
/** | ||
* This is an advanced setting. It improves the bundling of your server code. To use it, make sure you understand when your consumed packages are dependencies or dev depencies. (otherwise things will break in production) | ||
*/ | ||
// ssr: | ||
// command === "build" && mode === "production" | ||
// ? { | ||
// // All dev dependencies should be bundled in the server build | ||
// noExternal: Object.keys(devDependencies), | ||
// // Anything marked as a dependency will not be bundled | ||
// // These should only be production binary deps (including deps of deps), CLI deps, and their module graph | ||
// // If a dep-of-dep needs to be external, add it here | ||
// // For example, if something uses `bcrypt` but you don't have it as a dep, you can write | ||
// // external: [...Object.keys(dependencies), 'bcrypt'] | ||
// external: Object.keys(dependencies), | ||
// } | ||
// : undefined, | ||
server: { | ||
@@ -59,1 +65,31 @@ headers: { | ||
}); | ||
// *** utils *** | ||
/** | ||
* Function to identify duplicate dependencies and throw an error | ||
* @param {Object} devDependencies - List of development dependencies | ||
* @param {Object} dependencies - List of production dependencies | ||
*/ | ||
function errorOnDuplicatesPkgDeps( | ||
devDependencies: PkgDep, | ||
dependencies: PkgDep, | ||
) { | ||
// Create an array 'duplicateDeps' by filtering devDependencies. | ||
// If a dependency also exists in dependencies, it is considered a duplicate. | ||
const duplicateDeps = Object.keys(devDependencies).filter( | ||
(dep) => dependencies[dep], | ||
); | ||
// 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 = ` | ||
Warning: The dependency "${duplicateDeps.join(", ")}" is listed in both "devDependencies" and "dependencies". | ||
Please move the duplicated dependencies to "devDependencies" only and remove it from "dependencies" | ||
`; | ||
// Throw an error with the constructed message. | ||
if (duplicateDeps.length > 0) { | ||
throw new Error(msg); | ||
} | ||
} |
@@ -36,7 +36,7 @@ { | ||
"devDependencies": { | ||
"@builder.io/qwik": "1.5.2", | ||
"@types/eslint": "^8.56.6", | ||
"@types/node": "^20.11.30", | ||
"@typescript-eslint/eslint-plugin": "^7.3.1", | ||
"@typescript-eslint/parser": "^7.3.1", | ||
"@builder.io/qwik": "1.5.3", | ||
"@types/eslint": "^8.56.10", | ||
"@types/node": "^20.12.7", | ||
"@typescript-eslint/eslint-plugin": "^7.7.1", | ||
"@typescript-eslint/parser": "^7.7.1", | ||
"eslint": "^8.57.0", | ||
@@ -46,5 +46,5 @@ "eslint-plugin-qwik": "latest", | ||
"prettier": "^3.2.5", | ||
"typescript": "5.3.3", | ||
"typescript": "5.4.5", | ||
"undici": "*", | ||
"vite": "^5.1.6", | ||
"vite": "^5.2.10", | ||
"vite-tsconfig-paths": "^4.2.1" | ||
@@ -51,0 +51,0 @@ }, |
@@ -5,3 +5,3 @@ # Qwik Library ⚡️ | ||
- [Discord](https://qwik.dev/chat) | ||
- [Qwik on GitHub](https://github.com/BuilderIO/qwik) | ||
- [Qwik on GitHub](https://github.com/QwikDev/qwik) | ||
- [@QwikDev](https://twitter.com/QwikDev) | ||
@@ -8,0 +8,0 @@ - [Vite](https://vitejs.dev/) |
@@ -13,3 +13,3 @@ { | ||
"resolveJsonModule": true, | ||
"moduleResolution": "node", | ||
"moduleResolution": "Bundler", | ||
"esModuleInterop": true, | ||
@@ -16,0 +16,0 @@ "skipLibCheck": true, |
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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
1926122
110
3273
2