create-expo-stack 2.0.17 → 2.0.18
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/build/commands/create-expo-stack.js +47 -381
- package/build/constants.js +15 -0
- package/build/templates/base/package.json.ejs +1 -1
- package/build/types/constants.d.ts +4 -0
- package/build/types/types.d.ts +17 -0
- package/build/types/utilities/configureProjectFiles.d.ts +2 -0
- package/build/types/utilities/generateProjectFiles.d.ts +3 -0
- package/build/types/utilities/getPackageManager.d.ts +3 -0
- package/build/types/utilities/index.d.ts +8 -0
- package/build/types/utilities/printOutput.d.ts +3 -0
- package/build/types/utilities/renderTitle.d.ts +2 -0
- package/build/types/utilities/runCLI.d.ts +3 -0
- package/build/types/utilities/runIgnite.d.ts +2 -0
- package/build/types/utilities/usePackage.d.ts +2 -0
- package/build/types.js +5 -2
- package/build/utilities/configureProjectFiles.js +100 -0
- package/build/utilities/generateProjectFiles.js +40 -0
- package/build/utilities/getPackageManager.js +36 -0
- package/build/utilities/index.js +25 -0
- package/build/utilities/printOutput.js +111 -0
- package/build/utilities/renderTitle.js +83 -0
- package/build/utilities/runCLI.js +121 -0
- package/build/utilities/runIgnite.js +79 -0
- package/build/utilities/usePackage.js +8 -0
- package/package.json +1 -1
- package/build/types/utilities/getUserPackageManager.d.ts +0 -2
- package/build/utilities/getUserPackageManager.js +0 -28
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUserPackageManager = void 0;
|
|
4
|
-
// Taken directly from the T3 codebase
|
|
5
|
-
var getUserPackageManager = function () {
|
|
6
|
-
// This environment variable is set by npm and yarn but pnpm seems less consistent
|
|
7
|
-
var userAgent = process.env.npm_config_user_agent;
|
|
8
|
-
if (userAgent) {
|
|
9
|
-
if (userAgent.startsWith("yarn")) {
|
|
10
|
-
return "yarn";
|
|
11
|
-
}
|
|
12
|
-
else if (userAgent.startsWith("pnpm")) {
|
|
13
|
-
return "pnpm";
|
|
14
|
-
// TODO: Add support for bun
|
|
15
|
-
// } else if (userAgent.startsWith("bun")) {
|
|
16
|
-
// return "bun";
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
return "npm";
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
// If no user agent is set, assume npm
|
|
24
|
-
return "npm";
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.getUserPackageManager = getUserPackageManager;
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0VXNlclBhY2thZ2VNYW5hZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3V0aWxpdGllcy9nZXRVc2VyUGFja2FnZU1hbmFnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsc0NBQXNDO0FBQy9CLElBQU0scUJBQXFCLEdBQXlCO0lBQ3pELGtGQUFrRjtJQUNsRixJQUFNLFNBQVMsR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFDLHFCQUFxQixDQUFDO0lBQ3BELElBQUksU0FBUyxFQUFFO1FBQ2IsSUFBSSxTQUFTLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxFQUFFO1lBQ2hDLE9BQU8sTUFBTSxDQUFDO1NBQ2Y7YUFBTSxJQUFJLFNBQVMsQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLEVBQUU7WUFDdkMsT0FBTyxNQUFNLENBQUM7WUFDaEIsNEJBQTRCO1lBQzVCLDRDQUE0QztZQUM1QyxrQkFBa0I7U0FDakI7YUFBTTtZQUNMLE9BQU8sS0FBSyxDQUFDO1NBQ2Q7S0FDRjtTQUFNO1FBQ0wsc0NBQXNDO1FBQ3RDLE9BQU8sS0FBSyxDQUFDO0tBQ2Q7QUFDSCxDQUFDLENBQUM7QUFsQlcsUUFBQSxxQkFBcUIseUJBa0JoQyJ9
|