create-plasmic-app 0.0.61 → 0.0.62

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.
@@ -23,7 +23,7 @@ const common_1 = require("./common");
23
23
  const nextjsStrategy = {
24
24
  create: (args) => __awaiter(void 0, void 0, void 0, function* () {
25
25
  const { projectPath, template, useTypescript } = args;
26
- const createCommand = `npx create-next-app@latest ${useTypescript ? "--ts" : "--js"} --eslint --no-src-dir --no-experimental-app ${projectPath}`;
26
+ const createCommand = `npx @latest ${useTypescript ? "--ts" : "--js"} --eslint --no-src-dir --no-experimental-app --import-alias "@/*" ${projectPath}`;
27
27
  const templateArg = template ? ` --template ${template}` : "";
28
28
  // Default Next.js starter already supports Typescript
29
29
  // See where we `touch tsconfig.json` later on
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-plasmic-app",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "description": "Create Plasmic-powered React apps",
5
5
  "main": "./dist/lib.js",
6
6
  "types": "./dist/lib.d.ts",
@@ -54,5 +54,5 @@
54
54
  "validate-npm-package-name": "^3.0.0",
55
55
  "yargs": "^16.2.0"
56
56
  },
57
- "gitHead": "450ed61be16d7970f33c4405aa3e19fa3026a9b0"
57
+ "gitHead": "34763fe8abd621c6ece1dfa6fa198e18fbd18ee5"
58
58
  }
@@ -16,9 +16,9 @@ import { CPAStrategy } from "./types";
16
16
  const nextjsStrategy: CPAStrategy = {
17
17
  create: async (args) => {
18
18
  const { projectPath, template, useTypescript } = args;
19
- const createCommand = `npx create-next-app@latest ${
19
+ const createCommand = `npx @latest ${
20
20
  useTypescript ? "--ts" : "--js"
21
- } --eslint --no-src-dir --no-experimental-app ${projectPath}`;
21
+ } --eslint --no-src-dir --no-experimental-app --import-alias "@/*" ${projectPath}`;
22
22
  const templateArg = template ? ` --template ${template}` : "";
23
23
 
24
24
  // Default Next.js starter already supports Typescript