@digital-realty/ix-app-logic
Advanced tools
Comparing version 1.0.10-alpha-250571-t51.0 to 1.0.10-alpha-250587-t51.0
#!/usr/bin/env node | ||
import fs from 'fs'; | ||
import { importMap, headLinks } from '@digital-realty/theme/importMap.js'; | ||
import { importMap, headLinks, footLinks, } from '@digital-realty/theme/importMap.js'; | ||
import yargs from 'yargs'; | ||
@@ -9,3 +9,2 @@ import { hideBin } from 'yargs/helpers'; | ||
cdn: { | ||
// default: 'https://cdn.skypack.dev', | ||
default: 'https://cdn.jsdelivr.net/npm', | ||
@@ -23,3 +22,3 @@ description: 'default CDN url', | ||
'version-regex': { | ||
default: '||', | ||
default: '\\|\\|', | ||
description: 'Regex describing what is to be replaced from the raw map', | ||
@@ -39,4 +38,5 @@ }, | ||
importMapString = importMapString.replaceAll(replaceModStr, argv['version-mod']); | ||
importMapString = importMapString.replaceAll(argv['version-regex'], ''); | ||
importMapString = importMapString.replaceAll(new RegExp(argv['version-regex'], 'g'), ''); | ||
originalHtml = originalHtml.replace('<!-- import map -->', importMapString); | ||
originalHtml = originalHtml.replace('<!-- footer links -->', footLinks.replaceAll(replaceCdnStr, argv.cdn)); | ||
fs.writeFileSync(target, originalHtml, enconding); | ||
@@ -43,0 +43,0 @@ }) |
@@ -6,3 +6,3 @@ { | ||
"author": "ix-app-logic", | ||
"version": "1.0.10-alpha-250571-t51.0", | ||
"version": "1.0.10-alpha-250587-t51.0", | ||
"type": "module", | ||
@@ -43,7 +43,7 @@ "bin": { | ||
"@digital-realty/ix-button": "^3.2.32", | ||
"@digital-realty/ix-dialog": "^1.1.11-alpha-250571-t51.0", | ||
"@digital-realty/ix-drawer": "^1.1.14-alpha-250571-t51.0", | ||
"@digital-realty/ix-dialog": "^1.1.11-alpha-250587-t51.0", | ||
"@digital-realty/ix-drawer": "^1.1.14-alpha-250587-t51.0", | ||
"@digital-realty/ix-progress": "^1.2.3", | ||
"@digital-realty/ix-twlit": "1.0.1", | ||
"@digital-realty/theme": "^2.1.12-alpha-250571-t51.0", | ||
"@digital-realty/theme": "^2.1.12-alpha-250587-t51.0", | ||
"lit": "^3.1.4", | ||
@@ -117,3 +117,3 @@ "mobx": "^6.13.3", | ||
], | ||
"gitHead": "1f38096bbff5aad1892406af41ae696b2a741f61" | ||
"gitHead": "625d2ce707c0b99b24a68af74e188924044e48c9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165066