rb-homer 1.7.2 → 1.7.3
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/index.js +3 -3
- package/package.json +1 -1
- package/readme.md +7 -0
- package/src/synchronize.js +2 -2
package/index.js
CHANGED
|
@@ -139,7 +139,7 @@ else if (validCommand(commands.first, "listen", "l") || validCommand(commands.fi
|
|
|
139
139
|
if (compInfo && compInfo.appName) {
|
|
140
140
|
//Create tsconfig to reference typescript definitions
|
|
141
141
|
var tsConfigContent = {
|
|
142
|
-
compilerOptions: {lib: ["DOM","
|
|
142
|
+
compilerOptions: {lib: ["DOM","ES2022"]},
|
|
143
143
|
files: [
|
|
144
144
|
'./ViewModels/' + compInfo.appName + "Controller.ts",
|
|
145
145
|
__dirname + '/src/rb.d.ts'
|
|
@@ -381,7 +381,7 @@ else if (validCommand(commands.first, "tsconfig", "tsconfig")) { //internal cmd
|
|
|
381
381
|
if (compInfo && compInfo.appName) {
|
|
382
382
|
//Create tsconfig to reference typescript definitions
|
|
383
383
|
var tsConfigContent = {
|
|
384
|
-
compilerOptions: {lib: ["DOM","
|
|
384
|
+
compilerOptions: {lib: ["DOM","ES2022"]},
|
|
385
385
|
files: [
|
|
386
386
|
'./ViewModels/' + compInfo.appName + "Controller.ts",
|
|
387
387
|
__dirname + '/src/rb.d.ts'
|
|
@@ -476,7 +476,7 @@ function createTemplate(appNo, componentName, createWithinFolder, componenttype)
|
|
|
476
476
|
|
|
477
477
|
//Update tsconfig content to reference typescript definitions
|
|
478
478
|
var tsConfigContent = {
|
|
479
|
-
compilerOptions: {lib: ["DOM","
|
|
479
|
+
compilerOptions: {lib: ["DOM","ES2022"]},
|
|
480
480
|
files: [
|
|
481
481
|
'./ViewModels/' + componentName + "Controller.ts",
|
|
482
482
|
__dirname + '/src/rb.d.ts'
|
package/package.json
CHANGED
package/readme.md
CHANGED
package/src/synchronize.js
CHANGED
|
@@ -413,7 +413,7 @@ exports.sync = function (folderToZip, rbConfigMod) {
|
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
for (i = 0; i < viewModels.length; i++) {
|
|
416
|
-
viewModels[i].transpiled = ts.transpileModule(viewModels[i].contentTS, { compilerOptions: { module: ts.ModuleKind.AMD, inlineSourceMap: true, inlineSources: true }, fileName: viewModels[i].fileName });
|
|
416
|
+
viewModels[i].transpiled = ts.transpileModule(viewModels[i].contentTS, { compilerOptions: { module: ts.ModuleKind.AMD, target: "ES2022", inlineSourceMap: true, inlineSources: true }, fileName: viewModels[i].fileName });
|
|
417
417
|
viewModels[i].content = viewModels[i].transpiled.outputText;
|
|
418
418
|
fs.writeFileSync(folderToZip + "ViewModels/" + viewModels[i].fileName.replace(".ts", ".js"), viewModels[i].content, 'utf8');
|
|
419
419
|
}
|
|
@@ -480,7 +480,7 @@ exports.sync = function (folderToZip, rbConfigMod) {
|
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
//Transpile config.ts
|
|
483
|
-
var configTranspiled = ts.transpileModule(configTSContent, { compilerOptions: { module: ts.ModuleKind.AMD, inlineSourceMap: isTypescript, inlineSources: isTypescript }, fileName: "config.ts" });
|
|
483
|
+
var configTranspiled = ts.transpileModule(configTSContent, { compilerOptions: { module: ts.ModuleKind.AMD, target: "ES2022", inlineSourceMap: isTypescript, inlineSources: isTypescript }, fileName: "config.ts" });
|
|
484
484
|
configContent = configTranspiled.outputText;
|
|
485
485
|
fs.writeFileSync(folderToZip + 'config.js', configContent, 'utf8');
|
|
486
486
|
|