mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-25 02:57:31 +00:00
Further work on fix for #235 (solving additional problem that 'npm publish' is hardcoded to exclude node_modules dirs)
This commit is contained in:
@@ -110,7 +110,11 @@ function buildDotNetNewNuGetPackage() {
|
||||
const projectGuid = '00000000-0000-0000-0000-000000000000';
|
||||
const filenameReplacements = [
|
||||
{ from: /.*\.xproj$/, to: `${sourceProjectName}.xproj` },
|
||||
{ from: /\btemplate_gitignore$/, to: '.gitignore' }
|
||||
{ from: /\btemplate_gitignore$/, to: '.gitignore' },
|
||||
|
||||
// Workaround for https://github.com/aspnet/JavaScriptServices/issues/235
|
||||
// For details, see the comment in ../yeoman/app/index.ts
|
||||
{ from: /\btemplate_nodemodules_placeholder.txt$/, to: 'node_modules/_placeholder.txt' }
|
||||
];
|
||||
const contentReplacements = [
|
||||
{ from: /<ProjectGuid>[0-9a-f\-]{36}<\/ProjectGuid>/g, to: `<ProjectGuid>${projectGuid}</ProjectGuid>` },
|
||||
|
||||
Reference in New Issue
Block a user