@cedarjs/cli-helpers 2.4.1 → 2.4.2-next.143
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/cjs/lib/index.d.ts +2 -1
- package/dist/cjs/lib/index.d.ts.map +1 -1
- package/dist/cjs/lib/index.js +4 -1
- package/dist/cjs/lib/project.d.ts +6 -4
- package/dist/cjs/lib/project.d.ts.map +1 -1
- package/dist/cjs/lib/project.js +15 -12
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +4 -1
- package/dist/lib/project.d.ts +6 -4
- package/dist/lib/project.d.ts.map +1 -1
- package/dist/lib/project.js +15 -12
- package/dist/src/lib/index.d.ts +2 -1
- package/dist/src/lib/index.d.ts.map +1 -1
- package/dist/src/lib/project.d.ts +6 -4
- package/dist/src/lib/project.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
package/dist/cjs/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import type { ListrTaskWrapper, ListrRenderer } from 'listr2';
|
|
|
2
2
|
import { Listr } from 'listr2';
|
|
3
3
|
export declare const transformTSToJS: (filename: string, content: string) => string | Promise<string>;
|
|
4
4
|
/**
|
|
5
|
-
* This returns the config present in `prettier.config.cjs`
|
|
5
|
+
* This returns the config present in `prettier.config.cjs` or
|
|
6
|
+
* `prettier.config.mjs` of a Cedar project.
|
|
6
7
|
*/
|
|
7
8
|
export declare const getPrettierOptions: () => Promise<any>;
|
|
8
9
|
export declare const prettify: (templateFilename: string, renderedTemplate: string) => Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EAEd,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAU9B,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,6BA8BhE,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EAEd,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAU9B,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,6BA8BhE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,oBAoB9B,CAAA;AAED,eAAO,MAAM,QAAQ,GACnB,kBAAkB,MAAM,EACxB,kBAAkB,MAAM,KACvB,OAAO,CAAC,MAAM,CAwBhB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;AAEzD,eAAO,MAAM,SAAS,GAAI,QAAQ,SAAS,OAAO,aAAa,EAC7D,QAAQ,MAAM,EACd,UAAU,MAAM,EAChB,oBAA4B;IAAE,aAAa,CAAC,EAAE,aAAa,CAAA;CAAO,EAGlE,OAAM,gBAAgB,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAI/C,SAoBF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,OAAO,aAAa,EAClE,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,SAAS;IAAE,aAAa,EAAE,aAAa,CAAA;CAAE,qCAuB1C,CAAA"}
|
package/dist/cjs/lib/index.js
CHANGED
|
@@ -71,7 +71,10 @@ const transformTSToJS = (filename, content) => {
|
|
|
71
71
|
};
|
|
72
72
|
const getPrettierOptions = async () => {
|
|
73
73
|
try {
|
|
74
|
-
const
|
|
74
|
+
const cjsPath = import_path.default.join((0, import_paths.getPaths)().base, "prettier.config.cjs");
|
|
75
|
+
const mjsPath = import_path.default.join((0, import_paths.getPaths)().base, "prettier.config.mjs");
|
|
76
|
+
const prettierConfigPath = import_node_fs.default.existsSync(cjsPath) ? cjsPath : mjsPath;
|
|
77
|
+
const { default: options } = await import(`file://${prettierConfigPath}`);
|
|
75
78
|
if (options.tailwindConfig?.startsWith(".")) {
|
|
76
79
|
options.tailwindConfig = import_path.default.join(
|
|
77
80
|
process.env.RWJS_CWD ?? process.cwd(),
|
|
@@ -4,12 +4,14 @@ export declare const graphFunctionDoesExist: () => boolean | "" | null;
|
|
|
4
4
|
export declare const isTypeScriptProject: () => boolean;
|
|
5
5
|
export declare const getInstalledRedwoodVersion: () => any;
|
|
6
6
|
/**
|
|
7
|
-
* Updates the project's
|
|
7
|
+
* Updates the project's cedar.toml file to include the specified packages
|
|
8
|
+
* plugin
|
|
8
9
|
*
|
|
9
|
-
* Uses toml parsing to determine if the plugin is already included in the file
|
|
10
|
-
* only adds it if it is not.
|
|
10
|
+
* Uses toml parsing to determine if the plugin is already included in the file
|
|
11
|
+
* and only adds it if it is not.
|
|
11
12
|
*
|
|
12
|
-
* Writes the updated config to the file system by appending strings, not
|
|
13
|
+
* Writes the updated config to the file system by appending strings, not
|
|
14
|
+
* stringify-ing the toml.
|
|
13
15
|
*/
|
|
14
16
|
export declare const updateTomlConfig: (packageName: string) => void;
|
|
15
17
|
export declare const updateTomlConfigTask: (packageName: string) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/lib/project.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAWrD,eAAO,MAAM,cAAc,qBAE1B,CAAA;AAED,eAAO,MAAM,sBAAsB,2BAGlC,CAAA;AAED,eAAO,MAAM,mBAAmB,eAM/B,CAAA;AAED,eAAO,MAAM,0BAA0B,WAQtC,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/lib/project.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAWrD,eAAO,MAAM,cAAc,qBAE1B,CAAA;AAED,eAAO,MAAM,sBAAsB,2BAGlC,CAAA;AAED,eAAO,MAAM,mBAAmB,eAM/B,CAAA;AAED,eAAO,MAAM,0BAA0B,WAQtC,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAAI,aAAa,MAAM,SAmDnD,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,aAAa,MAAM;;;CAOvD,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,EAAE,SAAS,MAAM;;;CAOzE,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,EAAE,SAAS,MAAM,kBAqCrE,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,SAmCzC,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,QA0HjC"}
|
package/dist/cjs/lib/project.js
CHANGED
|
@@ -68,10 +68,10 @@ const getInstalledRedwoodVersion = () => {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
const updateTomlConfig = (packageName) => {
|
|
71
|
-
const
|
|
72
|
-
const originalTomlContent = fs.readFileSync(
|
|
71
|
+
const configTomlPath = (0, import_project_config.getConfigPath)();
|
|
72
|
+
const originalTomlContent = fs.readFileSync(configTomlPath, "utf-8");
|
|
73
73
|
let tomlToAppend = {};
|
|
74
|
-
const config = (0, import_project_config.getConfig)(
|
|
74
|
+
const config = (0, import_project_config.getConfig)(configTomlPath);
|
|
75
75
|
const cliSection = config.experimental?.cli;
|
|
76
76
|
if (!cliSection) {
|
|
77
77
|
tomlToAppend = {
|
|
@@ -105,11 +105,11 @@ const updateTomlConfig = (packageName) => {
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
const newConfig = originalTomlContent + "\n" + (Object.keys(tomlToAppend).length > 0 ? toml.stringify(tomlToAppend) + "\n" : "");
|
|
108
|
-
return fs.writeFileSync(
|
|
108
|
+
return fs.writeFileSync(configTomlPath, newConfig, "utf-8");
|
|
109
109
|
};
|
|
110
110
|
const updateTomlConfigTask = (packageName) => {
|
|
111
111
|
return {
|
|
112
|
-
title: `Updating
|
|
112
|
+
title: `Updating config file to configure ${packageName} ...`,
|
|
113
113
|
task: () => {
|
|
114
114
|
updateTomlConfig(packageName);
|
|
115
115
|
}
|
|
@@ -154,20 +154,23 @@ const addEnvVar = (name, value, comment) => {
|
|
|
154
154
|
return fs.writeFileSync(envPath, envFile);
|
|
155
155
|
};
|
|
156
156
|
const setRedwoodCWD = (cwd) => {
|
|
157
|
+
const configFiles = ["cedar.toml", "redwood.toml"];
|
|
157
158
|
cwd ??= process.env.RWJS_CWD;
|
|
158
159
|
if (cwd) {
|
|
159
|
-
if (!fs.existsSync(path.join(cwd,
|
|
160
|
-
throw new Error(
|
|
160
|
+
if (!configFiles.some((file) => cwd && fs.existsSync(path.join(cwd, file)))) {
|
|
161
|
+
throw new Error(
|
|
162
|
+
`Couldn't find a "${configFiles.join(" or ")}" file in ${cwd}`
|
|
163
|
+
);
|
|
161
164
|
}
|
|
162
165
|
} else {
|
|
163
|
-
const
|
|
164
|
-
if (!
|
|
166
|
+
const configTomlPath = (0, import_project_config.findUp)("cedar.toml", process.cwd()) || (0, import_project_config.findUp)("redwood.toml", process.cwd());
|
|
167
|
+
if (!configTomlPath) {
|
|
165
168
|
throw new Error(
|
|
166
|
-
`Couldn't find up a "redwood.toml" file from ${process.cwd()}`
|
|
169
|
+
`Couldn't find up a "cedar.toml" or "redwood.toml" file from ${process.cwd()}`
|
|
167
170
|
);
|
|
168
171
|
}
|
|
169
|
-
if (
|
|
170
|
-
cwd = path.dirname(
|
|
172
|
+
if (configTomlPath) {
|
|
173
|
+
cwd = path.dirname(configTomlPath);
|
|
171
174
|
}
|
|
172
175
|
}
|
|
173
176
|
process.env.RWJS_CWD = cwd;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import type { ListrTaskWrapper, ListrRenderer } from 'listr2';
|
|
|
2
2
|
import { Listr } from 'listr2';
|
|
3
3
|
export declare const transformTSToJS: (filename: string, content: string) => string | Promise<string>;
|
|
4
4
|
/**
|
|
5
|
-
* This returns the config present in `prettier.config.cjs`
|
|
5
|
+
* This returns the config present in `prettier.config.cjs` or
|
|
6
|
+
* `prettier.config.mjs` of a Cedar project.
|
|
6
7
|
*/
|
|
7
8
|
export declare const getPrettierOptions: () => Promise<any>;
|
|
8
9
|
export declare const prettify: (templateFilename: string, renderedTemplate: string) => Promise<string>;
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EAEd,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAU9B,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,6BA8BhE,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EAEd,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAU9B,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,6BA8BhE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,oBAoB9B,CAAA;AAED,eAAO,MAAM,QAAQ,GACnB,kBAAkB,MAAM,EACxB,kBAAkB,MAAM,KACvB,OAAO,CAAC,MAAM,CAwBhB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;AAEzD,eAAO,MAAM,SAAS,GAAI,QAAQ,SAAS,OAAO,aAAa,EAC7D,QAAQ,MAAM,EACd,UAAU,MAAM,EAChB,oBAA4B;IAAE,aAAa,CAAC,EAAE,aAAa,CAAA;CAAO,EAGlE,OAAM,gBAAgB,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAI/C,SAoBF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,OAAO,aAAa,EAClE,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,SAAS;IAAE,aAAa,EAAE,aAAa,CAAA;CAAE,qCAuB1C,CAAA"}
|
package/dist/lib/index.js
CHANGED
|
@@ -34,7 +34,10 @@ const transformTSToJS = (filename, content) => {
|
|
|
34
34
|
};
|
|
35
35
|
const getPrettierOptions = async () => {
|
|
36
36
|
try {
|
|
37
|
-
const
|
|
37
|
+
const cjsPath = path.join(getPaths().base, "prettier.config.cjs");
|
|
38
|
+
const mjsPath = path.join(getPaths().base, "prettier.config.mjs");
|
|
39
|
+
const prettierConfigPath = fs.existsSync(cjsPath) ? cjsPath : mjsPath;
|
|
40
|
+
const { default: options } = await import(`file://${prettierConfigPath}`);
|
|
38
41
|
if (options.tailwindConfig?.startsWith(".")) {
|
|
39
42
|
options.tailwindConfig = path.join(
|
|
40
43
|
process.env.RWJS_CWD ?? process.cwd(),
|
package/dist/lib/project.d.ts
CHANGED
|
@@ -4,12 +4,14 @@ export declare const graphFunctionDoesExist: () => boolean | "" | null;
|
|
|
4
4
|
export declare const isTypeScriptProject: () => boolean;
|
|
5
5
|
export declare const getInstalledRedwoodVersion: () => any;
|
|
6
6
|
/**
|
|
7
|
-
* Updates the project's
|
|
7
|
+
* Updates the project's cedar.toml file to include the specified packages
|
|
8
|
+
* plugin
|
|
8
9
|
*
|
|
9
|
-
* Uses toml parsing to determine if the plugin is already included in the file
|
|
10
|
-
* only adds it if it is not.
|
|
10
|
+
* Uses toml parsing to determine if the plugin is already included in the file
|
|
11
|
+
* and only adds it if it is not.
|
|
11
12
|
*
|
|
12
|
-
* Writes the updated config to the file system by appending strings, not
|
|
13
|
+
* Writes the updated config to the file system by appending strings, not
|
|
14
|
+
* stringify-ing the toml.
|
|
13
15
|
*/
|
|
14
16
|
export declare const updateTomlConfig: (packageName: string) => void;
|
|
15
17
|
export declare const updateTomlConfigTask: (packageName: string) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/lib/project.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAWrD,eAAO,MAAM,cAAc,qBAE1B,CAAA;AAED,eAAO,MAAM,sBAAsB,2BAGlC,CAAA;AAED,eAAO,MAAM,mBAAmB,eAM/B,CAAA;AAED,eAAO,MAAM,0BAA0B,WAQtC,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/lib/project.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAWrD,eAAO,MAAM,cAAc,qBAE1B,CAAA;AAED,eAAO,MAAM,sBAAsB,2BAGlC,CAAA;AAED,eAAO,MAAM,mBAAmB,eAM/B,CAAA;AAED,eAAO,MAAM,0BAA0B,WAQtC,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAAI,aAAa,MAAM,SAmDnD,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,aAAa,MAAM;;;CAOvD,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,EAAE,SAAS,MAAM;;;CAOzE,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,EAAE,SAAS,MAAM,kBAqCrE,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,SAmCzC,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,QA0HjC"}
|
package/dist/lib/project.js
CHANGED
|
@@ -31,10 +31,10 @@ const getInstalledRedwoodVersion = () => {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
const updateTomlConfig = (packageName) => {
|
|
34
|
-
const
|
|
35
|
-
const originalTomlContent = fs.readFileSync(
|
|
34
|
+
const configTomlPath = getConfigPath();
|
|
35
|
+
const originalTomlContent = fs.readFileSync(configTomlPath, "utf-8");
|
|
36
36
|
let tomlToAppend = {};
|
|
37
|
-
const config = getConfig(
|
|
37
|
+
const config = getConfig(configTomlPath);
|
|
38
38
|
const cliSection = config.experimental?.cli;
|
|
39
39
|
if (!cliSection) {
|
|
40
40
|
tomlToAppend = {
|
|
@@ -68,11 +68,11 @@ const updateTomlConfig = (packageName) => {
|
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
const newConfig = originalTomlContent + "\n" + (Object.keys(tomlToAppend).length > 0 ? toml.stringify(tomlToAppend) + "\n" : "");
|
|
71
|
-
return fs.writeFileSync(
|
|
71
|
+
return fs.writeFileSync(configTomlPath, newConfig, "utf-8");
|
|
72
72
|
};
|
|
73
73
|
const updateTomlConfigTask = (packageName) => {
|
|
74
74
|
return {
|
|
75
|
-
title: `Updating
|
|
75
|
+
title: `Updating config file to configure ${packageName} ...`,
|
|
76
76
|
task: () => {
|
|
77
77
|
updateTomlConfig(packageName);
|
|
78
78
|
}
|
|
@@ -117,20 +117,23 @@ const addEnvVar = (name, value, comment) => {
|
|
|
117
117
|
return fs.writeFileSync(envPath, envFile);
|
|
118
118
|
};
|
|
119
119
|
const setRedwoodCWD = (cwd) => {
|
|
120
|
+
const configFiles = ["cedar.toml", "redwood.toml"];
|
|
120
121
|
cwd ??= process.env.RWJS_CWD;
|
|
121
122
|
if (cwd) {
|
|
122
|
-
if (!fs.existsSync(path.join(cwd,
|
|
123
|
-
throw new Error(
|
|
123
|
+
if (!configFiles.some((file) => cwd && fs.existsSync(path.join(cwd, file)))) {
|
|
124
|
+
throw new Error(
|
|
125
|
+
`Couldn't find a "${configFiles.join(" or ")}" file in ${cwd}`
|
|
126
|
+
);
|
|
124
127
|
}
|
|
125
128
|
} else {
|
|
126
|
-
const
|
|
127
|
-
if (!
|
|
129
|
+
const configTomlPath = findUp("cedar.toml", process.cwd()) || findUp("redwood.toml", process.cwd());
|
|
130
|
+
if (!configTomlPath) {
|
|
128
131
|
throw new Error(
|
|
129
|
-
`Couldn't find up a "redwood.toml" file from ${process.cwd()}`
|
|
132
|
+
`Couldn't find up a "cedar.toml" or "redwood.toml" file from ${process.cwd()}`
|
|
130
133
|
);
|
|
131
134
|
}
|
|
132
|
-
if (
|
|
133
|
-
cwd = path.dirname(
|
|
135
|
+
if (configTomlPath) {
|
|
136
|
+
cwd = path.dirname(configTomlPath);
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
139
|
process.env.RWJS_CWD = cwd;
|
package/dist/src/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import type { ListrTaskWrapper, ListrRenderer } from 'listr2';
|
|
|
2
2
|
import { Listr } from 'listr2';
|
|
3
3
|
export declare const transformTSToJS: (filename: string, content: string) => string | Promise<string>;
|
|
4
4
|
/**
|
|
5
|
-
* This returns the config present in `prettier.config.cjs`
|
|
5
|
+
* This returns the config present in `prettier.config.cjs` or
|
|
6
|
+
* `prettier.config.mjs` of a Cedar project.
|
|
6
7
|
*/
|
|
7
8
|
export declare const getPrettierOptions: () => Promise<any>;
|
|
8
9
|
export declare const prettify: (templateFilename: string, renderedTemplate: string) => Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EAEd,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAU9B,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,6BA8BhE,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EAEd,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAU9B,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,6BA8BhE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,oBAoB9B,CAAA;AAED,eAAO,MAAM,QAAQ,GACnB,kBAAkB,MAAM,EACxB,kBAAkB,MAAM,KACvB,OAAO,CAAC,MAAM,CAwBhB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;AAEzD,eAAO,MAAM,SAAS,GAAI,QAAQ,SAAS,OAAO,aAAa,EAC7D,QAAQ,MAAM,EACd,UAAU,MAAM,EAChB,oBAA4B;IAAE,aAAa,CAAC,EAAE,aAAa,CAAA;CAAO,EAGlE,OAAM,gBAAgB,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAI/C,SAoBF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,OAAO,aAAa,EAClE,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,SAAS;IAAE,aAAa,EAAE,aAAa,CAAA;CAAE,qCAuB1C,CAAA"}
|
|
@@ -4,12 +4,14 @@ export declare const graphFunctionDoesExist: () => boolean | "" | null;
|
|
|
4
4
|
export declare const isTypeScriptProject: () => boolean;
|
|
5
5
|
export declare const getInstalledRedwoodVersion: () => any;
|
|
6
6
|
/**
|
|
7
|
-
* Updates the project's
|
|
7
|
+
* Updates the project's cedar.toml file to include the specified packages
|
|
8
|
+
* plugin
|
|
8
9
|
*
|
|
9
|
-
* Uses toml parsing to determine if the plugin is already included in the file
|
|
10
|
-
* only adds it if it is not.
|
|
10
|
+
* Uses toml parsing to determine if the plugin is already included in the file
|
|
11
|
+
* and only adds it if it is not.
|
|
11
12
|
*
|
|
12
|
-
* Writes the updated config to the file system by appending strings, not
|
|
13
|
+
* Writes the updated config to the file system by appending strings, not
|
|
14
|
+
* stringify-ing the toml.
|
|
13
15
|
*/
|
|
14
16
|
export declare const updateTomlConfig: (packageName: string) => void;
|
|
15
17
|
export declare const updateTomlConfigTask: (packageName: string) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/lib/project.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAWrD,eAAO,MAAM,cAAc,qBAE1B,CAAA;AAED,eAAO,MAAM,sBAAsB,2BAGlC,CAAA;AAED,eAAO,MAAM,mBAAmB,eAM/B,CAAA;AAED,eAAO,MAAM,0BAA0B,WAQtC,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/lib/project.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAWrD,eAAO,MAAM,cAAc,qBAE1B,CAAA;AAED,eAAO,MAAM,sBAAsB,2BAGlC,CAAA;AAED,eAAO,MAAM,mBAAmB,eAM/B,CAAA;AAED,eAAO,MAAM,0BAA0B,WAQtC,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAAI,aAAa,MAAM,SAmDnD,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,aAAa,MAAM;;;CAOvD,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,EAAE,SAAS,MAAM;;;CAOzE,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,EAAE,SAAS,MAAM,kBAqCrE,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,SAmCzC,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,QA0HjC"}
|