serverless-plugin-env-stage-config 1.3.8 → 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.
Files changed (2) hide show
  1. package/index.js +5 -6
  2. package/package.json +6 -4
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- const {readFileSync} = require('node:fs')
2
- const path = require('node:path')
1
+ import {readFileSync} from 'node:fs'
2
+ import path from 'node:path'
3
3
 
4
- const cloudformationSchema = require('@serverless/utils/cloudformation-schema')
5
- const yaml = require('js-yaml')
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 EnvironmentStageConfigServerlessPlugin {
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 EnvironmentStageConfigServerlessPlugin {
52
52
  }
53
53
  }
54
54
 
55
- module.exports = EnvironmentStageConfigServerlessPlugin
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "serverless-plugin-env-stage-config",
3
- "version": "1.3.8",
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
- "main": "index.js",
6
+ "type": "module",
7
+ "exports": "./index.js",
7
8
  "files": [
8
9
  "index.js"
9
10
  ],
@@ -26,7 +27,7 @@
26
27
  "devDependencies": {
27
28
  "@bizon/semantic-release-config": "^2.1.0",
28
29
  "eslint-config-xo-bizon": "^3.0.3",
29
- "semantic-release": "^23.0.6",
30
+ "semantic-release": "^24.0.0",
30
31
  "xo": "^0.58.0"
31
32
  },
32
33
  "xo": {
@@ -36,5 +37,6 @@
36
37
  },
37
38
  "release": {
38
39
  "extends": "@bizon/semantic-release-config"
39
- }
40
+ },
41
+ "packageManager": "pnpm@9.3.0"
40
42
  }