diff --git a/esbuild.package.js b/esbuild.package.js index 53a3266..abdf501 100644 --- a/esbuild.package.js +++ b/esbuild.package.js @@ -11,6 +11,9 @@ const { EXCLUDED_EXTENSIONS, EXCLUDED_FILES, DEFAULT_RELEASE_FOLDER_PATH } = req const packageData = JSON.parse(fs.readFileSync('./package.json').toString()); const RELEASE_FOLDER_PATH = path.join(DEFAULT_RELEASE_FOLDER_PATH, `${packageData.name}-${packageData.version}`); +const writeArg = process.argv.find(arg => arg.startsWith('--write=')); +const write = writeArg ? writeArg.slice('--write='.length) !== 'false' : true; + esbuild .build({ entryPoints: [ @@ -25,6 +28,7 @@ esbuild platform: 'node', target: 'node16', outdir: RELEASE_FOLDER_PATH, + write, minify: true, logLevel: 'info', external: [ @@ -37,29 +41,31 @@ esbuild 'oci-secrets', 'oracledb', ], - plugins: [ - clean({ - patterns: [DEFAULT_RELEASE_FOLDER_PATH], - }), - copy({ - assets: { - from: [path.join('node_modules', 'lodash', '**', '*')], - to: [path.join('node_modules', 'lodash')], - }, - }), - copy({ - assets: { - from: [path.join('node_modules', 'oracledb', '**', '*')], - to: [path.join('node_modules', 'oracledb')], - }, - }), - copyFolderFiles({ - fromPath: __dirname, - targetFolderPath: RELEASE_FOLDER_PATH, - excludedExtensions: EXCLUDED_EXTENSIONS, - excludedFiles: EXCLUDED_FILES, - }), - addReleaseFlag(path.resolve(RELEASE_FOLDER_PATH, 'package.json')), - ], + plugins: write + ? [ + clean({ + patterns: [DEFAULT_RELEASE_FOLDER_PATH], + }), + copy({ + assets: { + from: [path.join('node_modules', 'lodash', '**', '*')], + to: [path.join('node_modules', 'lodash')], + }, + }), + copy({ + assets: { + from: [path.join('node_modules', 'oracledb', '**', '*')], + to: [path.join('node_modules', 'oracledb')], + }, + }), + copyFolderFiles({ + fromPath: __dirname, + targetFolderPath: RELEASE_FOLDER_PATH, + excludedExtensions: EXCLUDED_EXTENSIONS, + excludedFiles: EXCLUDED_FILES, + }), + addReleaseFlag(path.resolve(RELEASE_FOLDER_PATH, 'package.json')), + ] + : [], }) .catch(() => process.exit(1)); diff --git a/package.json b/package.json index c52f447..1708aed 100644 --- a/package.json +++ b/package.json @@ -71,11 +71,12 @@ "perplex": "0.11.0" }, "simple-git-hooks": { - "pre-commit": "npm run package && npx lint-staged --config lint-staged.config.js", - "pre-push": "npm run lint" + "pre-commit": "npx lint-staged --config lint-staged.config.js", + "pre-push": "npm run lint && npm run bundle:check" }, "scripts": { "lint": "oxlint . || true", + "bundle:check": "node esbuild.package.js --write=false", "package": "node esbuild.package.js", "lint:check": "oxlint --type-aware --type-check . || true", "format": "prettier --write ." diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index b24ec70..5715aa2 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -549,6 +549,7 @@ making sure that you maintain a proper JSON format. "propertyKeyword": "length", "propertyType": "numeric", "valueType": "number", + "enableForReference": true, "propertyTooltip": "Setting for Length must be between 1 and 2000", "minValue": 1, "maxValue": 2000, @@ -589,6 +590,7 @@ making sure that you maintain a proper JSON format. "propertyKeyword": "length", "propertyType": "numeric", "valueType": "number", + "enableForReference": true, "propertyTooltip": "Setting for Length must be between 1 and 32767", "minValue": 1, "maxValue": 32767, @@ -628,6 +630,7 @@ making sure that you maintain a proper JSON format. "propertyName": "Length semantics", "propertyKeyword": "lengthSemantics", "propertyType": "select", + "enableForReference": true, "options": ["", "char", "byte"], "dependency": { "type": "and", @@ -740,6 +743,7 @@ making sure that you maintain a proper JSON format. "shouldValidate": true, "fieldType": "dynamicField", "changeAction": "changeDefaultValueOfField", + "enableForReference": true, "shadowState": true, "valueType": "asFieldType", "dependency": { @@ -784,6 +788,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "On null", "propertyKeyword": "defaultOnNull", + "enableForReference": true, "propertyType": "checkbox", "dependency": { "type": "and", @@ -975,6 +980,7 @@ making sure that you maintain a proper JSON format. "propertyKeyword": "maskedWithFunction", "propertyTooltip": "Limit exposure of sensitive data with this function", "propertyType": "details", + "enableForReference": true, "template": "textarea", "markdown": false, "dependency": { @@ -2165,6 +2171,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true, @@ -2528,6 +2535,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Precision", "propertyKeyword": "precision", + "enableForReference": true, "propertyType": "numeric", "valueType": "number", "propertyTooltip": "Setting for Precision must be between 1 and 38", @@ -2576,6 +2584,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Scale", "propertyKeyword": "scale", + "enableForReference": true, "propertyType": "numeric", "valueType": "number", "propertyTooltip": "Setting for Scale must be between -84 and 127", @@ -2625,6 +2634,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Default", "propertyKeyword": "default", + "enableForReference": true, "shouldValidate": true, "fieldType": "dynamicField", "changeAction": "changeDefaultValueOfField", @@ -2672,6 +2682,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "On null", "propertyKeyword": "defaultOnNull", + "enableForReference": true, "propertyType": "checkbox", "dependency": { "type": "and", @@ -2950,6 +2961,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Masked with function", "propertyKeyword": "maskedWithFunction", + "enableForReference": true, "propertyTooltip": "Limit exposure of sensitive data with this function", "propertyType": "details", "template": "textarea", @@ -4199,6 +4211,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true, @@ -4564,6 +4577,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Year precision", "propertyKeyword": "yearPrecision", + "enableForReference": true, "propertyType": "numeric", "valueType": "number", "propertyTooltip": "Setting for precision must be between 0 and 9", @@ -4604,6 +4618,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Day precision", "propertyKeyword": "dayPrecision", + "enableForReference": true, "propertyType": "numeric", "valueType": "number", "propertyTooltip": "Setting for precision must be between 0 and 9", @@ -4644,6 +4659,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Fractional seconds precision", "propertyKeyword": "fractSecPrecision", + "enableForReference": true, "propertyType": "numeric", "valueType": "number", "propertyTooltip": "Setting for precision must be between 0 and 9", @@ -4684,6 +4700,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "With time zone", "propertyKeyword": "withTimeZone", + "enableForReference": true, "propertyType": "checkbox", "dependency": { "type": "and", @@ -4718,6 +4735,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Local time zone", "propertyKeyword": "localTimeZone", + "enableForReference": true, "propertyType": "checkbox", "dependency": { "type": "and", @@ -4907,6 +4925,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Masked with function", "propertyKeyword": "maskedWithFunction", + "enableForReference": true, "propertyTooltip": "Limit exposure of sensitive data with this function", "propertyType": "details", "template": "textarea", @@ -5605,6 +5624,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "On null", "propertyKeyword": "defaultOnNull", + "enableForReference": true, "propertyType": "checkbox", "dependency": { "type": "and", @@ -5985,6 +6005,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true, @@ -6814,6 +6835,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true, @@ -7577,6 +7599,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Default", "propertyKeyword": "default", + "enableForReference": true, "propertyType": "text" }, { @@ -8044,6 +8067,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true, @@ -8448,6 +8472,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Length", "propertyKeyword": "length", + "enableForReference": true, "propertyType": "numeric", "valueType": "number", "propertyTooltip": "Setting for Length must be between 1 and 8000", @@ -8618,6 +8643,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Masked with function", "propertyKeyword": "maskedWithFunction", + "enableForReference": true, "propertyTooltip": "Limit exposure of sensitive data with this function", "propertyType": "details", "template": "textarea", @@ -9472,6 +9498,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true, @@ -10738,6 +10765,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Default", "propertyKeyword": "default", + "enableForReference": true, "shouldValidate": true, "fieldType": "dynamicField", "changeAction": "changeDefaultValueOfField", @@ -10785,6 +10813,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "On null", "propertyKeyword": "defaultOnNull", + "enableForReference": true, "propertyType": "checkbox", "dependency": { "type": "and", @@ -11143,6 +11172,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true, @@ -11164,6 +11194,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Dimension", "propertyKeyword": "dimension", + "enableForReference": true, "propertyType": "numeric", "valueType": "integer", "allowNegative": false, @@ -11329,6 +11360,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true, @@ -12125,6 +12157,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "On null", "propertyKeyword": "defaultOnNull", + "enableForReference": true, "propertyType": "checkbox", "dependency": { "type": "and", @@ -12203,6 +12236,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true, @@ -12745,6 +12779,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true, @@ -13531,6 +13566,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true, @@ -14085,6 +14121,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Remarks", "propertyKeyword": "comments", + "enableForReference": true, "shouldValidate": false, "propertyTooltip": "remarks", "addTimestampButton": true,