declapract-typescript-ehmpathy 0.29.0 → 0.29.1
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.
|
@@ -9,7 +9,6 @@ export const fix: FileFixFunction = (contents) => {
|
|
|
9
9
|
// TODO: when we have special support for yml, do this better (i.e., instead of string replace, just add to the yml object after parsing it)
|
|
10
10
|
contents: contents
|
|
11
11
|
.replace(/runtime\: nodejs\d\d.x/, 'runtime: nodejs16.x')
|
|
12
|
-
.replace('\nplugins:\n', '')
|
|
13
12
|
.replace(/ - serverless-offline .*\n/, '') // a plugin we no longer use (never used it, no need to have it)
|
|
14
13
|
.replace(/ - serverless-pseudo-parameters .*\n/, '') // a plugin we no longer use (serverless supports variables natively now)
|
|
15
14
|
.replace(/\#\{AWS\:\:Region\}/g, '${aws:region}') // use the serverless native variables, instead of the pseudo-parameters format
|
|
@@ -26,6 +25,10 @@ export const fix: FileFixFunction = (contents) => {
|
|
|
26
25
|
.replace(
|
|
27
26
|
/service: ([a-zA-Z0-9\-]+)\n\n?provider:/,
|
|
28
27
|
'service: $1\n\npackage:\n artifact: .artifact/contents.zip\n\nprovider:',
|
|
28
|
+
)
|
|
29
|
+
.replace(
|
|
30
|
+
' artifact: .artifact/contents.zip\n\nprovider:', // if no plugins at all
|
|
31
|
+
' artifact: .artifact/contents.zip\n\nplugins:\n\n - serverless-prune-plugin\n\nprovider:', // add the sls prune plugin
|
|
29
32
|
),
|
|
30
33
|
};
|
|
31
34
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "declapract-typescript-ehmpathy",
|
|
3
3
|
"author": "ehmpathy",
|
|
4
4
|
"description": "declapract best practices declarations for typescript",
|
|
5
|
-
"version": "0.29.
|
|
5
|
+
"version": "0.29.1",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"repository": "ehmpathy/declapract-typescript-ehmpathy",
|
|
8
8
|
"homepage": "https://github.com/ehmpathy/declapract-typescript-ehmpathy",
|