create-expo-module 0.5.7 → 0.5.8
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/resolvePackageManager.d.ts +1 -1
- package/build/types.d.ts +4 -4
- package/build/utils.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PackageManagerName = 'npm' | 'pnpm' | 'yarn';
|
|
2
2
|
/** Determine which package manager to use for installing dependencies based on how the process was started. */
|
|
3
3
|
export declare function resolvePackageManager(): PackageManagerName;
|
|
4
4
|
export declare function formatRunCommand(manager: PackageManagerName, cmd: string): string;
|
package/build/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { PromptObject } from 'prompts';
|
|
|
2
2
|
/**
|
|
3
3
|
* Possible command options.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type CommandOptions = {
|
|
6
6
|
target: string;
|
|
7
7
|
source?: string;
|
|
8
8
|
withReadme: boolean;
|
|
@@ -12,7 +12,7 @@ export declare type CommandOptions = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Represents an object that is passed to `ejs` when rendering the template.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export type SubstitutionData = {
|
|
16
16
|
project: {
|
|
17
17
|
slug: string;
|
|
18
18
|
name: string;
|
|
@@ -26,8 +26,8 @@ export declare type SubstitutionData = {
|
|
|
26
26
|
license: string;
|
|
27
27
|
repo: string;
|
|
28
28
|
};
|
|
29
|
-
export
|
|
29
|
+
export type CustomPromptObject = PromptObject & {
|
|
30
30
|
name: string;
|
|
31
31
|
resolvedValue?: string | null;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type Answers = Record<string, string>;
|
package/build/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ora from 'ora';
|
|
2
|
-
export
|
|
2
|
+
export type StepOptions = ora.Options;
|
|
3
3
|
export declare function newStep<Result>(title: string, action: (step: ora.Ora) => Promise<Result> | Result, options?: StepOptions): Promise<Result>;
|
|
4
4
|
/**
|
|
5
5
|
* Finds user's name by reading it from the git config.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-expo-module",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"description": "The script to create the Expo module",
|
|
5
5
|
"main": "build/create-expo-module.js",
|
|
6
6
|
"types": "build/create-expo-module.d.ts",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"@types/prompts": "^2.0.14",
|
|
54
54
|
"expo-module-scripts": "^3.0.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "ba80e8181b79d06e00a245653727f4eaeb80420e"
|
|
57
57
|
}
|