create-plasmic-app 0.0.61 → 0.0.63
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 create-next-app@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.
|
|
3
|
+
"version": "0.0.63",
|
|
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": "
|
|
57
|
+
"gitHead": "c3c19ae2a2444610bc745c84e140354dfb991d61"
|
|
58
58
|
}
|
package/src/strategies/nextjs.ts
CHANGED
|
@@ -18,7 +18,7 @@ const nextjsStrategy: CPAStrategy = {
|
|
|
18
18
|
const { projectPath, template, useTypescript } = args;
|
|
19
19
|
const createCommand = `npx create-next-app@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
|