mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-02-01 23:57:37 +00:00
Updates pluginmaker.js to add modification fields (#9401)
* Update pluginmaker.js Update plugin modified timestamp unless disabled. * Update pluginmaker.js Use getModificationFields() * Update pluginmaker.js Inline Tiddler creation parameters * Create #9401.tid Create release notes tiddler * Apply suggestion from @saqimtiaz --------- Co-authored-by: Saq Imtiaz <saq.imtiaz@gmail.com>
This commit is contained in:
@@ -60,7 +60,7 @@ exports.repackPlugin = function(title,additionalTiddlers,excludeTiddlers) {
|
||||
version += "+" + pluginVersion.build;
|
||||
}
|
||||
// Save the tiddler
|
||||
$tw.wiki.addTiddler(new $tw.Tiddler(pluginTiddler,{text: JSON.stringify({tiddlers: plugins},null,4), version: version}));
|
||||
$tw.wiki.addTiddler(new $tw.Tiddler(pluginTiddler,{text: JSON.stringify({tiddlers: plugins},null,4), version: version},$tw.wiki.getModificationFields()));
|
||||
// Delete any non-shadow constituent tiddlers
|
||||
$tw.utils.each(tiddlers,function(title) {
|
||||
if($tw.wiki.tiddlerExists(title)) {
|
||||
|
||||
10
editions/tw5.com/tiddlers/releasenotes/5.4.0/#9401.tid
Normal file
10
editions/tw5.com/tiddlers/releasenotes/5.4.0/#9401.tid
Normal file
@@ -0,0 +1,10 @@
|
||||
title: $:/changenotes/5.4.0/#9401
|
||||
description: Repacking plugins should update modified timestamp
|
||||
tags: $:/tags/ChangeNote
|
||||
release: 5.4.0
|
||||
change-type: enhancement
|
||||
change-category: developer
|
||||
github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9401
|
||||
github-contributors: andrewgoz
|
||||
|
||||
This PR modifies `$tw.utils.repackPlugin()` so that it adds the standard tiddler modification fields to plugin tiddlers when they are repacked.
|
||||
Reference in New Issue
Block a user