inikit 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inikit",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Best way to get started with Next.js and React project.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
package/dist/utils.js CHANGED
@@ -11,9 +11,14 @@ export const titleCase = (str) => {
11
11
  .join(' ');
12
12
  };
13
13
  export const createNextApp = async (appName, typeScript, tailwind = true) => {
14
+ await $({
15
+ cwd: process.cwd(),
16
+ }) `
17
+ npm install -g create-next-app@latest
18
+ `;
14
19
  const { stdout } = await $({
15
20
  cwd: process.cwd(),
16
- }) `npx create-next-app@latest ${appName} ${typeScript ? '--ts' : '--js'} ${tailwind ? '--tailwind' : '--no-tailwind'} --eslint --app --turbopack --use-npm --yes --disable-git`;
21
+ }) `npx create-next-app ${appName} ${typeScript ? '--ts' : '--js'} ${tailwind ? '--tailwind' : '--no-tailwind'} --eslint --app --turbopack --use-npm --yes --disable-git`;
17
22
  return stdout;
18
23
  };
19
24
  export const createReactApp = async (appName, typeScript) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inikit",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Best way to get started with Next.js and React project.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {