@journeyapps/cloudcode-build
Advanced tools
Comparing version 0.0.0-dev.7efd186 to 0.0.0-dev.800dc27
@@ -10,3 +10,3 @@ "use strict"; | ||
const tsc = require.resolve('typescript/bin/tsc'); | ||
const child = child_process_1.spawnSync(tsc, ['--project', '.'], { encoding: 'utf8', cwd: path }); | ||
const child = (0, child_process_1.spawnSync)(tsc, ['--project', '.'], { encoding: 'utf8', cwd: path }); | ||
if (child.status !== 0) { | ||
@@ -13,0 +13,0 @@ throw new ProcessError_1.ProcessError(child); |
@@ -14,4 +14,4 @@ #!/usr/bin/env node | ||
}, handled(async (argv) => { | ||
await _1.fileToDefinitions(argv.datamodel, DEFAULT_DATAMODEL_OUT); | ||
await _1.buildTypescript(); | ||
await (0, _1.fileToDefinitions)(argv.datamodel, DEFAULT_DATAMODEL_OUT); | ||
await (0, _1.buildTypescript)(); | ||
})) | ||
@@ -23,3 +23,3 @@ .command('datamodel', 'build the datamodel', (yargs) => { | ||
}, handled(async (argv) => { | ||
await _1.fileToDefinitions(argv.datamodel, argv.out); | ||
await (0, _1.fileToDefinitions)(argv.datamodel, argv.out); | ||
})) | ||
@@ -26,0 +26,0 @@ .option('verbose', { |
@@ -164,3 +164,3 @@ "use strict"; | ||
// Effectively we'd get `var c: DB._class = DB.class.create()` | ||
if (reservedKeywords_1.isReservedTypeName(name)) { | ||
if ((0, reservedKeywords_1.isReservedTypeName)(name)) { | ||
return `_${name}`; | ||
@@ -167,0 +167,0 @@ } |
@@ -26,3 +26,3 @@ "use strict"; | ||
await fileToDefinitions(path.resolve(taskPath, with_defaults.datamodel), path.resolve(taskPath, DEFAULT_DATAMODEL_OUT)); | ||
await build_1.buildTypescript(taskPath); | ||
await (0, build_1.buildTypescript)(taskPath); | ||
} | ||
@@ -34,3 +34,3 @@ exports.buildTask = buildTask; | ||
schema.loadXml(data, { apiVersion: new parser_common_1.Version('4.0') }); | ||
const ts = await datamodel_1.schemaToDefinitions(schema); | ||
const ts = await (0, datamodel_1.schemaToDefinitions)(schema); | ||
const dir = path.dirname(outPath); | ||
@@ -37,0 +37,0 @@ if (!fs.existsSync(dir)) { |
{ | ||
"name": "@journeyapps/cloudcode-build", | ||
"version": "0.0.0-dev.7efd186", | ||
"version": "0.0.0-dev.800dc27", | ||
"main": "./dist/index", | ||
@@ -29,9 +29,14 @@ "types": "./dist/index", | ||
"testEnvironment": "node", | ||
"verbose": true | ||
"verbose": true, | ||
"globals": { | ||
"ts-jest": { | ||
"tsconfig": "./tests/tsconfig.json" | ||
} | ||
} | ||
}, | ||
"scripts": { | ||
"cloudcode-build": "node ./dist/cloudcode-build.js", | ||
"build": "tsc -b", | ||
"build": "../../node_modules/.bin/tsc -b", | ||
"test": "jest" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27805