add process

This commit is contained in:
Simon Larsen 2022-05-23 22:22:55 +01:00
parent cae6be1a14
commit 3fb255721a
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
7 changed files with 26001 additions and 25983 deletions

51936
Accounts/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -55,6 +55,7 @@
"ts-loader": "^9.3.0",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.9.0"
"webpack-dev-server": "^4.9.0",
"process": "0.11.10"
}
}

View File

@ -17,10 +17,13 @@ module.exports = {
'react-native-sqlite-storage': 'react-native-sqlite-storage'
},
plugins: [
new webpack.DefinePlugin({
"app.env.production": JSON.stringify(true),
new webpack.ProvidePlugin({
process: 'process/browser',
}),
new Dotenv({ path: '../Common/.env', ignoreStub: true, prefix: "window." }),
// new webpack.DefinePlugin({
// "process.env.hello": JSON.stringify(true),
// }),
// new Dotenv({ path: '../Common/.env' }),
// new Dotenv({ path: '../CommonUI/.env'}),
// new Dotenv({ path: './.env'})
],

View File

@ -15,6 +15,7 @@
"moment": "^2.29.2",
"nanoid": "^3.3.2",
"nanoid-dictionary": "^4.3.0",
"process": "^0.11.10",
"reflect-metadata": "^0.1.13",
"slugify": "^1.6.5",
"typeorm": "^0.3.6",
@ -3554,6 +3555,14 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/process": {
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
"integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
"engines": {
"node": ">= 0.6.0"
}
},
"node_modules/prompts": {
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",
@ -7214,6 +7223,11 @@
}
}
},
"process": {
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
"integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI="
},
"prompts": {
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",

View File

@ -23,6 +23,7 @@
"moment": "^2.29.2",
"nanoid": "^3.3.2",
"nanoid-dictionary": "^4.3.0",
"process": "^0.11.10",
"reflect-metadata": "^0.1.13",
"slugify": "^1.6.5",
"typeorm": "^0.3.6",

View File

@ -28,7 +28,8 @@
},
"devDependencies": {
"@types/node": "^17.0.23",
"@types/react": "^18.0.9"
"@types/react": "^18.0.9",
"process": "^0.11.10"
}
},
"../Common": {
@ -294,6 +295,15 @@
"node": ">=0.10.0"
}
},
"node_modules/process": {
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
"integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
"dev": true,
"engines": {
"node": ">= 0.6.0"
}
},
"node_modules/prop-types": {
"version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
@ -617,6 +627,12 @@
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
},
"process": {
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
"integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
"dev": true
},
"prop-types": {
"version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",

View File

@ -30,6 +30,7 @@
},
"devDependencies": {
"@types/node": "^17.0.23",
"@types/react": "^18.0.9"
"@types/react": "^18.0.9",
"process": "^0.11.10"
}
}