From 16696d08d0635c3844a731da1ce3d791df70b1ba Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Mon, 10 Aug 2026 22:57:30 +0330 Subject: [PATCH] last ... --- package.json | 48 +++++++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index cd5b063..1558467 100644 --- a/package.json +++ b/package.json @@ -8,35 +8,36 @@ "ng": "ng", "start": "npm run serveXFrameworkProject", "watch": "ng build --watch --configuration development", + "nodeoptions": "cross-env NODE_OPTIONS=--openssl-legacy-provider", "|aaa1|==========|aaa1|": "", "|aaa2| /Regular |aaa2|": "", "|aaa3|==========|aaa3|": "", "|aaa1|=====|aaa1|": "", "|aaa2| Run |aaa2|": "", "|aaa3|=====|aaa3|": "", - "onlyServe": "ng serve -o", - "onlyServeSSL": "ng serve --ssl -o", + "onlyServe": "npm run nodeoptions && ng serve -o", + "onlyServeSSL": "npm run nodeoptions && ng serve --ssl -o", "runAndroid": "ionic cordova run android", "emulateIos": "ionic cordova emulate ios", "emulateAndroid": "ionic cordova emulate android", "runElectron": "cd platforms/electron && npm run --force runElectron", "startElectron": "cd platforms/electron && npm run --force startElectron", "runProdElectron": "cd platforms/electron && npm run --force runProdElectron", - "serveXFrameworkProject": "npm run --force prepareDependenciesFromRegistry && ng serve -o", - "serveInLabXFrameworkProject": "npm run --force prepareDependenciesFromRegistry && ionic serve -l", - "serveSSLXFrameworkProject": "npm run --force prepareDependenciesFromRegistry && ng serve -o --ssl", - "runXElectron": "npm run prepareDependenciesFromRegistry && cd platforms/electron && npm run --force runElectron", - "serveSSLWithKeysXFrameworkProjectWithoutOpen": "npm run --force prepareDependenciesFromRegistry && ng serve --ssl", - "serveProdXFrameworkProject": "npm run --force prepareDependenciesFromRegistry && ng serve -o --configuration production", - "serveSSLProdXFrameworkProject": "npm run --force prepareDependenciesFromRegistry && ng serve -o --ssl --configuration production", + "serveXFrameworkProject": "npm run --force prepareDependencies && ng serve -o", + "serveInLabXFrameworkProject": "npm run --force prepareDependencies && ionic serve -l", + "serveSSLXFrameworkProject": "npm run --force prepareDependencies && ng serve -o --ssl", + "runXElectron": "npm run prepareDependencies && cd platforms/electron && npm run --force runElectron", + "serveSSLWithKeysXFrameworkProjectWithoutOpen": "npm run --force prepareDependencies && ng serve --ssl", + "serveProdXFrameworkProject": "npm run --force prepareDependencies && ng serve -o --configuration production", + "serveSSLProdXFrameworkProject": "npm run --force prepareDependencies && ng serve -o --ssl --configuration production", "|aaa0|======|aaa1|": "", "|aaa2| /Run |aaa2|": "", "|aaa3|======|aaa1|": "", "|aaa4|=======|aaa1|": "", "|aaa2| Build |aaa2|": "", "|aaa3|=======|aaa1|": "", - "build": "ng build --aot --base-href ./", - "buildProd": "ng build --configuration production --aot --base-href ./", + "build": "npm run nodeoptions && ng build --aot --base-href ./", + "buildProd": "npm run nodeoptions && ng build --configuration production --aot --base-href ./", "buildElectronWin32": "cd platforms/electron && npm run --force buildElectronWin32", "buildElectronWin64": "cd platforms/electron && npm run --force buildElectronWin64", "buildElectronMac64": "cd platforms/electron && npm run --force buildElectronMac64", @@ -54,9 +55,9 @@ "prepareElectron": "cd platforms/electron && npm run prepareElectron", "prepareDependencies": "npm i --force -D ../Documents/pack/x-framework-core-0.0.1.tgz ../Documents/pack/x-framework-services-0.0.1.tgz ../Documents/pack/x-framework-components-0.0.1.tgz ../Documents/pack/x-framework-identity-sdk-0.0.1.tgz ../Documents/pack/x-framework-push-service-0.0.1.tgz ../Documents/pack/x-saherelm-api-sdk-0.0.1.tgz", "prepareDependenciesByLink": "npm link x-framework-core x-framework-services x-framework-components x-framework-identity-sdk x-framework-push-service x-saherelm-api-sdk", - "prepareXDependenciesFromRegistry": "npm i --force -D --registry https://npm.saherelmhub.ir x-framework-core x-framework-services x-framework-components x-framework-identity-sdk x-framework-push-service", - "prepareDependenciesFromRegistry": "npm i --force -D --registry https://npm.saherelmhub.ir x-framework-core x-framework-services x-framework-components x-framework-identity-sdk x-framework-push-service x-saherelm-api-sdk", - "addAPISDKRegisteryDependency": "npm i --force -D --registry https://npm.saherelmhub.ir x-saherelm-api-sdk", + "prepareXDependenciesFromRegistry": "npm i --force -D --registry https://npm.saherelm.ir x-framework-core x-framework-services x-framework-components x-framework-identity-sdk x-framework-push-service", + "prepareDependenciesFromRegistry": "npm i --force -D --registry https://npm.saherelm.ir x-framework-core x-framework-services x-framework-components x-framework-identity-sdk x-framework-push-service x-saherelm-api-sdk", + "addAPISDKRegisteryDependency": "npm i --force -D --registry https://npm.saherelm.ir x-saherelm-api-sdk", "addAPISDKLocalDependency": "npm i --force -D ../Documents/pack/x-saherelm-api-sdk-0.0.1.tgz", "|aaa0|==========|aaa1|": "", "|aaa2| /Prepare |aaa2|": "", @@ -110,6 +111,7 @@ "cordova-plugin-statusbar": "^2.4.2", "cordova-plugin-whitelist": "^1.3.3", "cordova-res": "^0.15.3", + "cross-env": "^10.1.0", "crypto-js": "^4.0.0", "dom-to-image": "^2.6.0", "echarts": "^5.4.2", @@ -135,11 +137,11 @@ "shx": "^0.3.3", "typescript": "~4.2.3", "uuid": "^8.3.2", - "x-framework-components": "0.0.1", - "x-framework-core": "0.0.1", - "x-framework-identity-sdk": "0.0.1", - "x-framework-push-service": "0.0.1", - "x-framework-services": "0.0.1", + "x-framework-components": "file:../Documents/pack/x-framework-components-0.0.1.tgz", + "x-framework-core": "file:../Documents/pack/x-framework-core-0.0.1.tgz", + "x-framework-identity-sdk": "file:../Documents/pack/x-framework-identity-sdk-0.0.1.tgz", + "x-framework-push-service": "file:../Documents/pack/x-framework-push-service-0.0.1.tgz", + "x-framework-services": "file:../Documents/pack/x-framework-services-0.0.1.tgz", "x-saherelm-api-sdk": "file:../Documents/pack/x-saherelm-api-sdk-0.0.1.tgz" }, "cordova": { @@ -155,5 +157,13 @@ "android", "ios" ] + }, + "allowScripts": { + "sharp@0.29.3": true, + "core-js@3.12.0": true, + "esbuild@0.13.8": true, + "electron@21.4.4": true, + "@angular/cli@12.0.5": true, + "@compodoc/compodoc@1.2.1": true } }