rangutopia 0.0.7 → 0.0.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/package.json +1 -1
- package/dist/utils/yarn.d.ts +0 -16
- package/dist/utils/yarn.d.ts.map +0 -1
- package/dist/utils/yarn.js +0 -60
- package/dist/utils/yarn.js.map +0 -1
package/package.json
CHANGED
package/dist/utils/yarn.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const yarnCommands: {
|
|
2
|
-
add(packages: string[], type?: "dev"): import("nano-spawn").Subprocess;
|
|
3
|
-
getWorkspaces(json?: boolean): Promise<{
|
|
4
|
-
stdout: string;
|
|
5
|
-
stderr: string;
|
|
6
|
-
output: string;
|
|
7
|
-
command: string;
|
|
8
|
-
durationMs: number;
|
|
9
|
-
pipedFrom?: import("nano-spawn").Result | import("nano-spawn").SubprocessError;
|
|
10
|
-
}>;
|
|
11
|
-
bumpProductionVersion(packageName: string, releaseType: "patch" | "minor" | "major"): import("nano-spawn").Subprocess;
|
|
12
|
-
bumpPrereleaseVersion(packageName: string): import("nano-spawn").Subprocess;
|
|
13
|
-
bumpToVersion(packageName: string, newVersion: string): import("nano-spawn").Subprocess;
|
|
14
|
-
publish(pkgLocation: string, tag: string): import("nano-spawn").Subprocess;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=yarn.d.ts.map
|
package/dist/utils/yarn.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yarn.d.ts","sourceRoot":"","sources":["../../src/utils/yarn.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;kBACP,MAAM,EAAE,SAAS,KAAK;;;;;;;;;uCAWD,MAAM,eAAe,OAAO,GAAG,OAAO,GAAG,OAAO;uCAWhD,MAAM;+BAYd,MAAM,cAAc,MAAM;yBAYhC,MAAM,OAAO,MAAM;CAQ3C,CAAC"}
|
package/dist/utils/yarn.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { stripVTControlCharacters } from "node:util";
|
|
2
|
-
import spawn from "nano-spawn";
|
|
3
|
-
export const yarnCommands = {
|
|
4
|
-
add(packages, type) {
|
|
5
|
-
let args = ["add"];
|
|
6
|
-
if (type === "dev")
|
|
7
|
-
args.push("-D");
|
|
8
|
-
args = args.concat(packages);
|
|
9
|
-
return spawn("yarn", args);
|
|
10
|
-
},
|
|
11
|
-
async getWorkspaces(json = true) {
|
|
12
|
-
// --json flag guarantees that whether it is run with yarn or node, the output always has a consistent result.
|
|
13
|
-
const result = await spawn("yarn", ['--silent', 'workspaces', 'info', json ? '--json' : '']);
|
|
14
|
-
return { ...result, stdout: stripVTControlCharacters(result.stdout) };
|
|
15
|
-
},
|
|
16
|
-
bumpProductionVersion(packageName, releaseType) {
|
|
17
|
-
return spawn('yarn', [
|
|
18
|
-
'--silent',
|
|
19
|
-
'workspace',
|
|
20
|
-
packageName,
|
|
21
|
-
'version',
|
|
22
|
-
`--${releaseType}`,
|
|
23
|
-
'--no-git-tag-version',
|
|
24
|
-
'--json',
|
|
25
|
-
]);
|
|
26
|
-
},
|
|
27
|
-
bumpPrereleaseVersion(packageName) {
|
|
28
|
-
return spawn('yarn', [
|
|
29
|
-
'--silent',
|
|
30
|
-
'workspace',
|
|
31
|
-
packageName,
|
|
32
|
-
'version',
|
|
33
|
-
'--preid=next',
|
|
34
|
-
'--prerelease',
|
|
35
|
-
'--no-git-tag-version',
|
|
36
|
-
'--json',
|
|
37
|
-
]);
|
|
38
|
-
},
|
|
39
|
-
bumpToVersion(packageName, newVersion) {
|
|
40
|
-
return spawn('yarn', [
|
|
41
|
-
'--silent',
|
|
42
|
-
'workspace',
|
|
43
|
-
packageName,
|
|
44
|
-
'version',
|
|
45
|
-
'--new-version',
|
|
46
|
-
newVersion,
|
|
47
|
-
'--no-git-tag-version',
|
|
48
|
-
'--json',
|
|
49
|
-
]);
|
|
50
|
-
},
|
|
51
|
-
publish(pkgLocation, tag) {
|
|
52
|
-
return spawn('yarn', [
|
|
53
|
-
'publish',
|
|
54
|
-
pkgLocation,
|
|
55
|
-
'--tag',
|
|
56
|
-
tag,
|
|
57
|
-
]);
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
//# sourceMappingURL=yarn.js.map
|
package/dist/utils/yarn.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yarn.js","sourceRoot":"","sources":["../../src/utils/yarn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,GAAG,CAAC,QAAkB,EAAE,IAAY;QAChC,IAAI,IAAI,GAAG,CAAC,KAAK,CAAC,CAAA;QAClB,IAAI,IAAI,KAAK,KAAK;YAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACnC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QAC5B,OAAO,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAC9B,CAAC;IACD,KAAK,CAAC,aAAa,CAAC,IAAI,GAAG,IAAI;QAC3B,8GAA8G;QAC9G,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QAC5F,OAAO,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,wBAAwB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAA;IACzE,CAAC;IACD,qBAAqB,CAAC,WAAmB,EAAE,WAAwC;QAC/E,OAAO,KAAK,CAAC,MAAM,EAAE;YACjB,UAAU;YACV,WAAW;YACX,WAAW;YACX,SAAS;YACT,KAAK,WAAW,EAAE;YAClB,sBAAsB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