serverless-plugin-env-stage-config 1.3.5 → 1.4.0
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/README.md +2 -1
- package/index.js +5 -6
- package/package.json +15 -10
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ For development stages (`local`, `dev`, `development`), the variables will defau
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
|
|
18
|
+
pnpm add -D serverless-plugin-env-stage-config
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
```yaml
|
|
@@ -61,6 +61,7 @@ functions:
|
|
|
61
61
|
In a local environment, the variables resolved with the `esc:` prefix will be equivalent to using `env:`. Using `useDotenv: true` alongside a `.env` file will alow you to define your environement variables.
|
|
62
62
|
|
|
63
63
|
The supported local stages are:
|
|
64
|
+
|
|
64
65
|
- `local`
|
|
65
66
|
- `dev`
|
|
66
67
|
- `development`
|
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import {readFileSync} from 'node:fs'
|
|
2
|
+
import path from 'node:path'
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import cloudformationSchema from '@serverless/utils/cloudformation-schema.js'
|
|
5
|
+
import yaml from 'js-yaml'
|
|
6
6
|
|
|
7
7
|
const developmentStages = new Set([
|
|
8
8
|
'local',
|
|
@@ -10,7 +10,7 @@ const developmentStages = new Set([
|
|
|
10
10
|
'dev',
|
|
11
11
|
])
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
export default class EnvironmentStageConfigServerlessPlugin {
|
|
14
14
|
constructor(serverless, options) {
|
|
15
15
|
this.serverless = serverless
|
|
16
16
|
this.options = options
|
|
@@ -52,4 +52,3 @@ class EnvStageConfigServerlessPlugin {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
module.exports = EnvStageConfigServerlessPlugin
|
package/package.json
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "serverless-plugin-env-stage-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"author": "Bertrand Marron <bertrand.marron@gmail.com>",
|
|
5
5
|
"description": "Serverless plugin to define environment variables files for stages",
|
|
6
|
-
"
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": "./index.js",
|
|
7
8
|
"files": [
|
|
8
9
|
"index.js"
|
|
9
10
|
],
|
|
10
11
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
12
|
+
"node": ">=16"
|
|
12
13
|
},
|
|
13
|
-
"
|
|
14
|
+
"scripts": {
|
|
15
|
+
"preinstall": "npx only-allow pnpm"
|
|
16
|
+
},
|
|
17
|
+
"repository": "https://github.com/bizon/serverless-plugin-env-stage-config",
|
|
14
18
|
"license": "MIT",
|
|
15
19
|
"keywords": [
|
|
16
20
|
"serverless",
|
|
17
21
|
"serverless-plugin"
|
|
18
22
|
],
|
|
19
23
|
"dependencies": {
|
|
20
|
-
"@serverless/utils": "^6.
|
|
24
|
+
"@serverless/utils": "^6.15.0",
|
|
21
25
|
"js-yaml": "^4.1.0"
|
|
22
26
|
},
|
|
23
27
|
"devDependencies": {
|
|
24
|
-
"@bizon/semantic-release-config": "^2.
|
|
25
|
-
"eslint-config-xo-bizon": "^
|
|
26
|
-
"semantic-release": "^
|
|
27
|
-
"xo": "^0.
|
|
28
|
+
"@bizon/semantic-release-config": "^2.1.0",
|
|
29
|
+
"eslint-config-xo-bizon": "^3.0.3",
|
|
30
|
+
"semantic-release": "^24.0.0",
|
|
31
|
+
"xo": "^0.58.0"
|
|
28
32
|
},
|
|
29
33
|
"xo": {
|
|
30
34
|
"extends": "xo-bizon",
|
|
@@ -33,5 +37,6 @@
|
|
|
33
37
|
},
|
|
34
38
|
"release": {
|
|
35
39
|
"extends": "@bizon/semantic-release-config"
|
|
36
|
-
}
|
|
40
|
+
},
|
|
41
|
+
"packageManager": "pnpm@9.3.0"
|
|
37
42
|
}
|