@journeyapps/cloudcode-build
Advanced tools
Comparing version 0.0.0-dev.47a1bb4 to 0.0.0-dev.47b9b61
@@ -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.47a1bb4", | ||
"version": "0.0.0-dev.47b9b61", | ||
"main": "./dist/index", | ||
@@ -19,3 +19,3 @@ "types": "./dist/index", | ||
"@journeyapps/parser-schema": "^6.0.0", | ||
"typescript": "^4.3.3", | ||
"typescript": "^5.6.3", | ||
"xmldom": "^0.1.27", | ||
@@ -30,9 +30,14 @@ "yargs": "^13.3.0" | ||
"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" | ||
} | ||
} |
@@ -9,4 +9,9 @@ { | ||
"declaration": false, | ||
"sourceMap": true | ||
"sourceMap": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"types": [ | ||
"@journeyapps/cloudcode" | ||
] | ||
} | ||
} |
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
27913
507
+ Addedtypescript@5.6.3(transitive)
- Removedtypescript@4.9.5(transitive)
Updatedtypescript@^5.6.3