Skip to content

Commit

Permalink
feat: added dev.processing.html.injections to mutable props [CRE-1203] (
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
smnh authored Jun 3, 2024
1 parent 7d51c79 commit 2ee98a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"files": [
"bin.js",
"lib/**/*.js"
"lib/**/*.js",
"lib/**/*.d.ts"
],
"author": "Netlify Inc.",
"contributors": [
Expand Down
3 changes: 3 additions & 0 deletions packages/config/src/mutations/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,7 @@ const MUTABLE_PROPS = {
images: { lastEvent: 'onPostBuild' },
'images.remote_images': { lastEvent: 'onPostBuild' },
redirects: { lastEvent: 'onPostBuild' },
'dev.processing': { lastEvent: 'onPreDev' },
'dev.processing.html': { lastEvent: 'onPreDev' },
'dev.processing.html.injections': { lastEvent: 'onPreDev' },
}

0 comments on commit 2ee98a5

Please sign in to comment.