Skip to content

Commit 2ee98a5

Browse files
authored
feat: added dev.processing.html.injections to mutable props [CRE-1203] (#5692)
* fix: [CRE-1203] added dev.processing.html.injections to mutable props This enables visual-editor plugin to inject snippet into html in dev mode. * fix: npm publish with d.ts files Publish config packages with d.ts files to allow dependent packages use Type definitions
1 parent 7d51c79 commit 2ee98a5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/config/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"files": [
1313
"bin.js",
14-
"lib/**/*.js"
14+
"lib/**/*.js",
15+
"lib/**/*.d.ts"
1516
],
1617
"author": "Netlify Inc.",
1718
"contributors": [

packages/config/src/mutations/apply.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,7 @@ const MUTABLE_PROPS = {
7777
images: { lastEvent: 'onPostBuild' },
7878
'images.remote_images': { lastEvent: 'onPostBuild' },
7979
redirects: { lastEvent: 'onPostBuild' },
80+
'dev.processing': { lastEvent: 'onPreDev' },
81+
'dev.processing.html': { lastEvent: 'onPreDev' },
82+
'dev.processing.html.injections': { lastEvent: 'onPreDev' },
8083
}

0 commit comments

Comments
 (0)