@charlietango/react-docs-net
Advanced tools
@@ -32,2 +32,3 @@ // | ||
function modelName(name ) { | ||
if (name.endsWith('Types')) return typesName(name); | ||
return cleanName(name) + 'ViewModel'; | ||
@@ -34,0 +35,0 @@ } |
@@ -79,5 +79,10 @@ // | ||
const uniqueRefs = [...new Set(refs)]; | ||
const modelsAtDest = config.dest | ||
? globby | ||
.sync(path.join(config.dest, '*.cs')) | ||
.map(file => ({ name: path.basename(file, '.cs') })) | ||
: models; | ||
const missing = uniqueRefs.filter( | ||
name => !models.find(model => model.name === name) | ||
name => !modelsAtDest.find(model => model.name === name) | ||
); | ||
@@ -84,0 +89,0 @@ |
{ | ||
"name": "@charlietango/react-docs-net", | ||
"description": "Package and publish a NuGet package to a custom feed.", | ||
"version": "2.3.3", | ||
"version": "2.4.0", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "bin": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
43445
1.07%735
0.82%