@public-ui/kolibri-cli 4.0.0-rc.1 → 4.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,8 @@ exports.UpdateLoaderImportPathTask = void 0;
|
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const reuse_1 = require("../../../shares/reuse");
|
|
9
9
|
const abstract_task_1 = require("../../abstract-task");
|
|
10
|
-
const LOADER_FILE_EXTENSIONS = ['js', 'jsx', 'ts', 'tsx', 'vue'];
|
|
10
|
+
const LOADER_FILE_EXTENSIONS = ['cjs', 'cts', 'js', 'jsx', 'mjs', 'mts', 'ts', 'tsx', 'vue'];
|
|
11
|
+
const LOADER_IMPORT_REGEX = /@public-ui\/components\/dist\/loader(?:\/[^\s'"]+)?/g;
|
|
11
12
|
class UpdateLoaderImportPathTask extends abstract_task_1.AbstractTask {
|
|
12
13
|
constructor(identifier, versionRange, dependentTasks, options) {
|
|
13
14
|
super(identifier, 'Update loader imports to @public-ui/components/loader', LOADER_FILE_EXTENSIONS, versionRange, dependentTasks, options);
|
|
@@ -25,7 +26,7 @@ class UpdateLoaderImportPathTask extends abstract_task_1.AbstractTask {
|
|
|
25
26
|
transpileFiles(baseDir) {
|
|
26
27
|
(0, reuse_1.filterFilesByExt)(baseDir, LOADER_FILE_EXTENSIONS).forEach((file) => {
|
|
27
28
|
const content = fs_1.default.readFileSync(file, 'utf8');
|
|
28
|
-
const newContent = content.replace(
|
|
29
|
+
const newContent = content.replace(LOADER_IMPORT_REGEX, '@public-ui/components/loader');
|
|
29
30
|
if (newContent !== content) {
|
|
30
31
|
reuse_1.MODIFIED_FILES.add(file);
|
|
31
32
|
fs_1.default.writeFileSync(file, newContent);
|
package/dist/types.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.REACT_TAG_REGEX = exports.WEB_TAG_REGEX = exports.SCSS_FILE_EXTENSIONS = exports.MARKUP_EXTENSIONS = exports.CUSTOM_ELEMENT_FILE_EXTENSIONS = exports.COMPONENT_FILE_EXTENSIONS = exports.FILE_EXTENSIONS = void 0;
|
|
4
|
-
exports.FILE_EXTENSIONS = ['
|
|
4
|
+
exports.FILE_EXTENSIONS = ['cjs', 'css', 'cts', 'html', 'js', 'json', 'jsx', 'mjs', 'mts', 'sass', 'scss', 'ts', 'tsx', 'vue', 'xhtml'];
|
|
5
5
|
exports.COMPONENT_FILE_EXTENSIONS = ['jsx', 'tsx', 'vue'];
|
|
6
6
|
exports.CUSTOM_ELEMENT_FILE_EXTENSIONS = ['html', 'xhtml', 'jsx', 'tsx', 'vue'];
|
|
7
7
|
exports.MARKUP_EXTENSIONS = exports.COMPONENT_FILE_EXTENSIONS.concat(exports.CUSTOM_ELEMENT_FILE_EXTENSIONS);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/kolibri-cli",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.2",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prettier-plugin-organize-imports": "4.3.0",
|
|
31
31
|
"semver": "7.7.3",
|
|
32
32
|
"typed-bem": "1.0.2",
|
|
33
|
-
"@public-ui/components": "4.0.0-rc.
|
|
33
|
+
"@public-ui/components": "4.0.0-rc.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "24.10.4",
|