Change metadata format

This commit is contained in:
Alex Dima 2016-08-24 10:41:52 +02:00
parent a6e0092cd1
commit e76aa16381
3 changed files with 32 additions and 22 deletions

View file

@ -10,17 +10,17 @@
function resolveCorePath(core) {
if (loadDevEditor()) {
return core.srcPath;
return core.paths.dev;
} else {
return '/monaco-editor/' + core.path;
return '/monaco-editor/' + core.paths.npm;
}
}
function resolvePluginPath(plugin) {
if (plugin.srcPath && getQueryStringValue(plugin.name) === 'dev') {
return plugin.srcPath;
if (plugin.paths.dev && getQueryStringValue(plugin.name) === 'dev') {
return plugin.paths.dev;
} else {
return '/monaco-editor/' + plugin.path;
return '/monaco-editor/' + plugin.paths.npm;
}
}