diff --git a/package/generate-package.js b/package/generate-package.js index 5a4adf7ddc..1b738c6000 100644 --- a/package/generate-package.js +++ b/package/generate-package.js @@ -171,6 +171,7 @@ copySourceDirectories() path.join(PROJECT_ROOT_PATH, 'tailwind.base.config.js'), PACKAGE_DIST_PATH ) + await copyFile(path.join(CURRENT_DIR_PATH, 'style.css'), PACKAGE_DIST_PATH) await copyFile(path.join(CURRENT_DIR_PATH, 'index.ts'), PACKAGE_DIST_PATH) await fs.cp(LIBS_DEST_PATH, path.join(PACKAGE_DIST_PATH, 'src/libs'), { recursive: true, @@ -183,13 +184,25 @@ copySourceDirectories() } ) - console.log('Fixing .d.ts.map sources path to point to the src/libs folder') + console.log( + 'Fixing .d.ts.map sources path to point to the src/libs folder...' + ) await rewriteFiles( PACKAGE_DIST_PATH, (filePath) => filePath.endsWith('.d.ts.map'), (chunk) => chunk.replace('../../libs/', '../src/libs/') ) + console.log('Cleaning up...') + await fs.rm(path.join(CURRENT_DIR_PATH, 'libs'), { + force: true, + recursive: true, + }) + await fs.rm(path.join(CURRENT_DIR_PATH, 'translations'), { + force: true, + recursive: true, + }) + console.log('Package was successfully generated!') }) .catch((error) => { diff --git a/package/package.json b/package/package.json index 96b4dcf263..e8ecc1896c 100644 --- a/package/package.json +++ b/package/package.json @@ -8,7 +8,7 @@ "type": "module", "exports": { "./tailwind.base.config.js": "./tailwind.base.config.js", - "./tailwind.base.css": "./tailwind.base.css" + "./style.css": "./style.css" }, "peerDependencies": { "@angular/animations": "16.x || 17.x", diff --git a/package/style.css b/package/style.css new file mode 100644 index 0000000000..d7c8592c5f --- /dev/null +++ b/package/style.css @@ -0,0 +1,4 @@ +@import 'tippy.js/dist/tippy.css'; +@import 'ol/ol.css'; +@import '@angular/material/prebuilt-themes/indigo-pink.css'; +@import './tailwind.base.css';