@prisma-psm/core 1.0.3 → 1.0.4
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/README.md +190 -2
- package/package.json +12 -4
- package/src/configs.d.ts +20 -0
- package/src/configs.d.ts.map +1 -0
- package/src/configs.js +3 -0
- package/src/configs.js.map +1 -0
- package/src/configs.ts +19 -0
- package/src/driver.d.ts +1 -0
- package/src/driver.d.ts.map +1 -1
- package/src/driver.ts +2 -1
- package/src/index.d.ts +0 -1
- package/src/index.d.ts.map +1 -1
- package/src/index.js +0 -159
- package/src/index.js.map +1 -1
- package/src/index.ts +1 -173
- package/src/launcher/commands/check.d.ts +4 -0
- package/src/launcher/commands/check.d.ts.map +1 -0
- package/src/launcher/commands/check.js +13 -0
- package/src/launcher/commands/check.js.map +1 -0
- package/src/launcher/commands/check.ts +17 -0
- package/src/launcher/commands/deploy.d.ts +5 -0
- package/src/launcher/commands/deploy.d.ts.map +1 -0
- package/src/launcher/commands/deploy.js +13 -0
- package/src/launcher/commands/deploy.js.map +1 -0
- package/src/launcher/commands/deploy.ts +17 -0
- package/src/launcher/commands/generate.d.ts +4 -0
- package/src/launcher/commands/generate.d.ts.map +1 -0
- package/src/launcher/commands/generate.js +14 -0
- package/src/launcher/commands/generate.js.map +1 -0
- package/src/launcher/commands/generate.ts +18 -0
- package/src/launcher/commands/migrate.d.ts +5 -0
- package/src/launcher/commands/migrate.d.ts.map +1 -0
- package/src/launcher/commands/migrate.js +29 -0
- package/src/launcher/commands/migrate.js.map +1 -0
- package/src/launcher/commands/migrate.ts +35 -0
- package/src/launcher/index.d.ts +3 -0
- package/src/launcher/index.d.ts.map +1 -0
- package/src/launcher/index.js +17 -0
- package/src/launcher/index.js.map +1 -0
- package/src/launcher/index.ts +14 -0
- package/src/tools/check.d.ts +2 -0
- package/src/tools/check.d.ts.map +1 -0
- package/src/tools/check.js +6 -0
- package/src/tools/check.js.map +1 -0
- package/src/tools/check.ts +3 -0
- package/src/tools/deploy.d.ts +7 -0
- package/src/tools/deploy.d.ts.map +1 -0
- package/src/tools/deploy.js +3 -0
- package/src/tools/deploy.js.map +1 -0
- package/src/tools/deploy.ts +6 -0
- package/src/tools/generate.d.ts +2 -0
- package/src/tools/generate.d.ts.map +1 -0
- package/src/tools/generate.js +158 -0
- package/src/tools/generate.js.map +1 -0
- package/src/tools/generate.ts +151 -0
- package/src/tools/migrate.d.ts +8 -0
- package/src/tools/migrate.d.ts.map +1 -0
- package/src/tools/migrate.js +137 -0
- package/src/tools/migrate.js.map +1 -0
- package/src/tools/migrate.ts +121 -0
package/src/index.ts
CHANGED
|
@@ -1,174 +1,2 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { GeneratorOptions } from '@prisma/generator-helper'
|
|
4
|
-
import { generatorHandler, GeneratorManifest } from '@prisma/generator-helper'
|
|
5
|
-
|
|
6
|
-
import * as fs from 'fs'
|
|
7
|
-
import {extractModels} from "./extractor";
|
|
8
|
-
import * as Path from "node:path";
|
|
9
|
-
import {customRandom, random} from "nanoid";
|
|
10
|
-
import {
|
|
11
|
-
PSMDriver,
|
|
12
|
-
ModelOptions,
|
|
13
|
-
PSMField,
|
|
14
|
-
PSMModel,
|
|
15
|
-
PSMParserOptions,
|
|
16
|
-
DriverConfigs,
|
|
17
|
-
PSMMigrationResult
|
|
18
|
-
} from "./driver";
|
|
19
|
-
import {parsePsmDoc} from "./docs";
|
|
20
|
-
import * as JSON5 from "json5";
|
|
21
|
-
import * as process from "node:process";
|
|
22
|
-
export * from "./driver"
|
|
23
|
-
|
|
24
|
-
function write( sql:string, dirname:string, file:string){
|
|
25
|
-
fs.writeFileSync( Path.join( dirname, file ), sql );
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
generatorHandler({
|
|
29
|
-
onManifest(): GeneratorManifest {
|
|
30
|
-
return {
|
|
31
|
-
version: '1.0.0',
|
|
32
|
-
defaultOutput: './psm',
|
|
33
|
-
prettyName: 'PSM - Prisma Safe Migration',
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
async onGenerate(options: GeneratorOptions) {
|
|
38
|
-
try{
|
|
39
|
-
|
|
40
|
-
const home = options.generator.output?.value || "./psm";
|
|
41
|
-
const definition = Path.join( home, "definitions");
|
|
42
|
-
const revisions = Path.join( home, "revisions");
|
|
43
|
-
const next = Path.join( home, "next");
|
|
44
|
-
|
|
45
|
-
fs.mkdirSync( definition, { recursive: true });
|
|
46
|
-
fs.mkdirSync( revisions, { recursive: true });
|
|
47
|
-
fs.mkdirSync( next, { recursive: true });
|
|
48
|
-
const { datamodels, models, enums, schema } = extractModels( options, definition );
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
let rand = customRandom( "abcdefghijklmnopqrstuvwxyz0123456789",8, random);
|
|
52
|
-
const migration = rand();
|
|
53
|
-
const configs:DriverConfigs = options.generator.config as any;
|
|
54
|
-
const url = process.env[configs.url] as string;
|
|
55
|
-
|
|
56
|
-
const driver = await import( configs.driver ) as PSMDriver;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
let usePrepare= ( model:ModelOptions )=>{
|
|
60
|
-
return Promise.resolve( driver.prepare( model ) )
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
for (let i = 0; i < models.length; i++) {
|
|
64
|
-
const model = models[i] as any as ModelOptions;
|
|
65
|
-
model.model = model.name;
|
|
66
|
-
model.name = model.dbName||model.model;
|
|
67
|
-
|
|
68
|
-
if( !!model.documentation ){
|
|
69
|
-
model.psm = parsePsmDoc<PSMModel>( model.documentation );
|
|
70
|
-
}
|
|
71
|
-
model.fields.forEach( field => {
|
|
72
|
-
if( !!field.documentation ) field.psm = parsePsmDoc<PSMField>( field.documentation );
|
|
73
|
-
});
|
|
74
|
-
await usePrepare(model);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const opts: PSMParserOptions = {
|
|
80
|
-
models: models as any,
|
|
81
|
-
indexes: datamodels.indexes,
|
|
82
|
-
migration: migration,
|
|
83
|
-
shadow: `psm_shadow_${rand()}`,
|
|
84
|
-
backup: "backup",
|
|
85
|
-
sys: "sys",
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
const generator = driver.generator(opts);
|
|
89
|
-
|
|
90
|
-
const check = generator.check();
|
|
91
|
-
const migrate = generator.migrate();
|
|
92
|
-
|
|
93
|
-
write( check, next, "migration.next.check.sql" );
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
let test:PSMMigrationResult|undefined;
|
|
97
|
-
|
|
98
|
-
if( !!url ) {
|
|
99
|
-
test = await driver.migrator({
|
|
100
|
-
migrate: migrate,
|
|
101
|
-
check: check,
|
|
102
|
-
url: url as string
|
|
103
|
-
}).test();
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if( !configs.url ){
|
|
107
|
-
write( migrate, next, "migration.next.sql" );
|
|
108
|
-
} else if( !!test && test.success ) {
|
|
109
|
-
write( migrate, next, "migration.next.sql" );
|
|
110
|
-
} else {
|
|
111
|
-
console.error( `TEST OF MIGRATION FAILED! Check file migration.next.check.sql` );
|
|
112
|
-
if( !!test?.messages?.length ){
|
|
113
|
-
console.log("TESTE MESSAGES>>>>>>>>>>");
|
|
114
|
-
test.messages.forEach(value => {
|
|
115
|
-
console.log( value)
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if( !!test?.error ){
|
|
120
|
-
console.log("TESTE ERROR>>>>>>>>>>");
|
|
121
|
-
console.error( test?.error );
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
write( JSON5.stringify({
|
|
126
|
-
migration: migration,
|
|
127
|
-
driver: options.generator.config.driver,
|
|
128
|
-
test: {
|
|
129
|
-
check: !!test? "checked": "skipped",
|
|
130
|
-
success: test?.success,
|
|
131
|
-
messages: test?.messages
|
|
132
|
-
}
|
|
133
|
-
}, null, 2), next, "migration.json5" )
|
|
134
|
-
} catch (e){
|
|
135
|
-
console.error( "console.error", e );
|
|
136
|
-
throw e
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
})
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
// const raw = `
|
|
145
|
-
// @psm.view
|
|
146
|
-
// @psm.backup.skip
|
|
147
|
-
// @psm.backup.clean
|
|
148
|
-
// @psm.backup.lists.list1 += 8383
|
|
149
|
-
// @psm.backup.lists.list1 += 8383
|
|
150
|
-
// @psm.backup.lists.list1 += 8383
|
|
151
|
-
// @psm.type = view
|
|
152
|
-
// @psm.view
|
|
153
|
-
// @psm.view2 = true
|
|
154
|
-
// @psm.view3 = false
|
|
155
|
-
// @psm.description = <<<EOF
|
|
156
|
-
// Texto descritivo
|
|
157
|
-
// que ocupa várias linhas
|
|
158
|
-
// e pode ter qualquer coisa dentro.
|
|
159
|
-
// EOF
|
|
160
|
-
// @psm.multline_docs = Line1
|
|
161
|
-
// @psm.multline_docs = Line2
|
|
162
|
-
// @psm.multline_docs = Line3
|
|
163
|
-
// @psm.array += Line1
|
|
164
|
-
// @psm.array += Line2
|
|
165
|
-
// @psm.array += Line3
|
|
166
|
-
// @psm.array += ["Line4"]
|
|
167
|
-
// @psm.array += {i:"line5"}
|
|
168
|
-
// @psm.array_idx[2] = {i:"Array index 2"}
|
|
169
|
-
// @psm.childObject = {type:"Type", usr:"User"}
|
|
170
|
-
// @psm.childObject2 = { "type":"Type", name:"Object2"}
|
|
171
|
-
// `
|
|
172
|
-
// console.log( JSON.stringify( parsePsmDoc(raw), null, 2) );
|
|
173
|
-
|
|
174
1
|
|
|
2
|
+
export * from "./driver"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAKpC,QAAA,MAAM,OAAO,EAAC,aAQb,CAAA;AAED,SAAS,OAAO,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const check_1 = require("../../tools/check");
|
|
3
|
+
const command = {
|
|
4
|
+
command: "check",
|
|
5
|
+
builder: args => {
|
|
6
|
+
return args;
|
|
7
|
+
},
|
|
8
|
+
handler: args => {
|
|
9
|
+
(0, check_1.check)();
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
module.exports = command;
|
|
13
|
+
//# sourceMappingURL=check.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["check.ts"],"names":[],"mappings":";AAEA,6CAAwC;AAGxC,MAAM,OAAO,GAAiB;IAC1B,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,IAAI,CAAC,EAAE;QACZ,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,EAAE,IAAI,CAAC,EAAE;QACZ,IAAA,aAAK,GAAE,CAAC;IACZ,CAAC;CACJ,CAAA;AAED,iBAAS,OAAO,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {CommandModule} from "yargs";
|
|
2
|
+
import {migrate} from "../../tools/migrate";
|
|
3
|
+
import {check} from "../../tools/check";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const command:CommandModule = {
|
|
7
|
+
command: "check",
|
|
8
|
+
builder: args => {
|
|
9
|
+
return args;
|
|
10
|
+
},
|
|
11
|
+
handler: args => {
|
|
12
|
+
check();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export = command;
|
|
17
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AACpC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGjD,QAAA,MAAM,OAAO,EAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CASvD,CAAA;AAED,SAAS,OAAO,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const command = {
|
|
3
|
+
command: "migrate deploy",
|
|
4
|
+
describe: "Deploy to production environment",
|
|
5
|
+
builder: args => {
|
|
6
|
+
return args;
|
|
7
|
+
},
|
|
8
|
+
handler: (argv) => {
|
|
9
|
+
console.log("TODO - psm migrate deploy ainda não esta implementado");
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
module.exports = command;
|
|
13
|
+
//# sourceMappingURL=deploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["deploy.ts"],"names":[],"mappings":";AAIA,MAAM,OAAO,GAA+C;IACxD,OAAO,EAAE,gBAAgB;IACzB,QAAQ,EAAE,kCAAkC;IAC5C,OAAO,EAAE,IAAI,CAAC,EAAE;QACZ,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,EAAC,CAAE,IAAI,EAAE,EAAE;QACd,OAAO,CAAC,GAAG,CAAE,uDAAuD,CAAC,CAAA;IACzE,CAAC;CACJ,CAAA;AAED,iBAAS,OAAO,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {CommandModule} from "yargs";
|
|
2
|
+
import {DeployOptions} from "../../tools/deploy";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
const command:CommandModule<DeployOptions, DeployOptions> = {
|
|
6
|
+
command: "migrate deploy",
|
|
7
|
+
describe: "Deploy to production environment",
|
|
8
|
+
builder: args => {
|
|
9
|
+
return args;
|
|
10
|
+
},
|
|
11
|
+
handler:( argv) =>{
|
|
12
|
+
console.log( "TODO - psm migrate deploy ainda não esta implementado")
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export = command;
|
|
17
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAIpC,QAAA,MAAM,OAAO,EAAC,aAUb,CAAA;AAED,SAAS,OAAO,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const generate_1 = require("../../tools/generate");
|
|
3
|
+
const command = {
|
|
4
|
+
command: "migrate generate",
|
|
5
|
+
describe: "Generate pre-migrate archives",
|
|
6
|
+
builder: args => {
|
|
7
|
+
return args;
|
|
8
|
+
},
|
|
9
|
+
handler: args => {
|
|
10
|
+
(0, generate_1.generate)();
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
module.exports = command;
|
|
14
|
+
//# sourceMappingURL=generate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["generate.ts"],"names":[],"mappings":";AACA,mDAA8C;AAG9C,MAAM,OAAO,GAAiB;IAC1B,OAAO,EAAE,kBAAkB;IAC3B,QAAQ,EAAE,+BAA+B;IAEzC,OAAO,EAAE,IAAI,CAAC,EAAE;QACZ,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,EAAE,IAAI,CAAC,EAAE;QACZ,IAAA,mBAAQ,GAAE,CAAC;IACf,CAAC;CACJ,CAAA;AAED,iBAAS,OAAO,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {CommandModule} from "yargs";
|
|
2
|
+
import {generate} from "../../tools/generate";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
const command:CommandModule = {
|
|
6
|
+
command: "migrate generate",
|
|
7
|
+
describe: "Generate pre-migrate archives",
|
|
8
|
+
|
|
9
|
+
builder: args => {
|
|
10
|
+
return args;
|
|
11
|
+
},
|
|
12
|
+
handler: args => {
|
|
13
|
+
generate();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export = command;
|
|
18
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["migrate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AACpC,OAAO,EAAU,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAG5D,QAAA,MAAM,OAAO,EAAC,aAAa,CAAC,cAAc,EAAE,cAAc,CA2BzD,CAAA;AAED,SAAS,OAAO,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const command = {
|
|
3
|
+
command: "migrate commit",
|
|
4
|
+
describe: "Migrate next schema structure into dev environment",
|
|
5
|
+
builder: args => {
|
|
6
|
+
args.options("schema", {
|
|
7
|
+
type: "string",
|
|
8
|
+
alias: "s"
|
|
9
|
+
}).options("generate", {
|
|
10
|
+
type: "boolean",
|
|
11
|
+
alias: "g",
|
|
12
|
+
}).options("label", {
|
|
13
|
+
type: "string",
|
|
14
|
+
alias: "l",
|
|
15
|
+
}).options("generate-command", {
|
|
16
|
+
type: "string",
|
|
17
|
+
alias: "c"
|
|
18
|
+
});
|
|
19
|
+
return args;
|
|
20
|
+
},
|
|
21
|
+
handler: (argv) => {
|
|
22
|
+
console.log(argv);
|
|
23
|
+
// migrate(argv).then( value => {
|
|
24
|
+
// }).catch( reason => {
|
|
25
|
+
// })
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
module.exports = command;
|
|
29
|
+
//# sourceMappingURL=migrate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["migrate.ts"],"names":[],"mappings":";AAIA,MAAM,OAAO,GAAiD;IAC1D,OAAO,EAAE,gBAAgB;IACzB,QAAQ,EAAE,oDAAoD;IAC9D,OAAO,EAAE,IAAI,CAAC,EAAE;QACZ,IAAI,CAAC,OAAO,CAAE,QAAQ,EAAE;YACpB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,GAAG;SACb,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE;YACnB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,GAAG;SACb,CAAC,CAAC,OAAO,CAAE,OAAO,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,GAAG;SAEb,CAAC,CAAC,OAAO,CAAE,kBAAkB,EAAE;YAC5B,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,GAAG;SACb,CAAC,CAAA;QAEF,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,EAAC,CAAE,IAAI,EAAE,EAAE;QACd,OAAO,CAAC,GAAG,CAAE,IAAI,CAAE,CAAA;QACnB,kCAAkC;QAClC,wBAAwB;QACxB,KAAK;IACT,CAAC;CACJ,CAAA;AAED,iBAAS,OAAO,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {CommandModule} from "yargs";
|
|
2
|
+
import {migrate, MigrateOptions} from "../../tools/migrate";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
const command:CommandModule<MigrateOptions, MigrateOptions> = {
|
|
6
|
+
command: "migrate commit",
|
|
7
|
+
describe: "Migrate next schema structure into dev environment",
|
|
8
|
+
builder: args => {
|
|
9
|
+
args.options( "schema", {
|
|
10
|
+
type: "string",
|
|
11
|
+
alias: "s"
|
|
12
|
+
}).options("generate", {
|
|
13
|
+
type: "boolean",
|
|
14
|
+
alias: "g",
|
|
15
|
+
}).options( "label", {
|
|
16
|
+
type: "string",
|
|
17
|
+
alias: "l",
|
|
18
|
+
|
|
19
|
+
}).options( "generate-command", {
|
|
20
|
+
type: "string",
|
|
21
|
+
alias: "c"
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
return args;
|
|
25
|
+
},
|
|
26
|
+
handler:( argv) =>{
|
|
27
|
+
console.log( argv )
|
|
28
|
+
// migrate(argv).then( value => {
|
|
29
|
+
// }).catch( reason => {
|
|
30
|
+
// })
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export = command;
|
|
35
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
require("source-map-support").install();
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
require("source-map-support").install();
|
|
10
|
+
const yargs_1 = __importDefault(require("yargs"));
|
|
11
|
+
let ss = (0, yargs_1.default)(process.argv.slice(2))
|
|
12
|
+
//language=file-reference
|
|
13
|
+
.commandDir(path_1.default.join(__dirname, "./commands"))
|
|
14
|
+
.demandCommand()
|
|
15
|
+
.help()
|
|
16
|
+
.argv;
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,EAAE,CAAC;AAExC,gDAAwB;AAExB,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,EAAE,CAAC;AACxC,kDAA0B;AAE1B,IAAI,EAAE,GAAG,IAAA,eAAK,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACjC,yBAAyB;KACxB,UAAU,CAAC,cAAI,CAAC,IAAI,CAAE,SAAS,EAAE,YAAY,CAAE,CAAE;KACjD,aAAa,EAAE;KACf,IAAI,EAAE;KACN,IAAI,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
require("source-map-support").install();
|
|
3
|
+
|
|
4
|
+
import Path from "path";
|
|
5
|
+
|
|
6
|
+
require("source-map-support").install();
|
|
7
|
+
import yargs from "yargs";
|
|
8
|
+
|
|
9
|
+
let ss = yargs(process.argv.slice(2))
|
|
10
|
+
//language=file-reference
|
|
11
|
+
.commandDir(Path.join( __dirname, "./commands" ) )
|
|
12
|
+
.demandCommand()
|
|
13
|
+
.help()
|
|
14
|
+
.argv;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["check.ts"],"names":[],"mappings":"AAAA,wBAAgB,KAAK,SAEpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["check.ts"],"names":[],"mappings":";;AAAA,sBAEC;AAFD,SAAgB,KAAK;AAErB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["deploy.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,MAAM,CAAC,EAAC,MAAM,CAAA;IACd,QAAQ,CAAC,EAAC,MAAM,CAAA;IAChB,KAAK,CAAC,EAAC,MAAM,CAAA;IACb,kBAAkB,EAAC,MAAM,CAAA;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["deploy.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["generate.ts"],"names":[],"mappings":"AAuBA,wBAAgB,QAAQ,SA+HvB"}
|