build fixes

This commit is contained in:
codecalm
2024-05-22 20:56:25 +02:00
parent c8b7cb6355
commit 199637c86e
7 changed files with 16 additions and 10 deletions

View File

@@ -66,7 +66,7 @@ export const buildFramework = (packageName, {
flagContent = flagContent.replace(/\n\s*/g, '')
writeFileSync(join(__dirname, `../packages/${packageName}/flags/flags/flag-${name}.${extension}`), componentTemplate({
writeFileSync(join(__dirname, `../packages/${packageName}/src/flags/flag-${name}.${extension}`), componentTemplate({
name,
namePascal: toPascalCase(name),
iso: flagData.iso,
@@ -85,5 +85,5 @@ export const buildFramework = (packageName, {
console.log(name);
})
writeFileSync(join(__dirname, `../packages/${packageName}/flags/flags/index.ts`), index.join('\n'), 'utf8')
writeFileSync(join(__dirname, `../packages/${packageName}/src/flags/index.ts`), index.join('\n'), 'utf8')
}

View File

@@ -1,6 +1,6 @@
{
"name": "flags",
"version": "1.0.0",
"version": "0.0.1",
"private": true,
"description": "",
"scripts": {

View File

@@ -6,7 +6,7 @@ import sharp from 'sharp';
const flags = globSync('../../flags/*.svg');
const sizes = [12, 16, 24, 32, 48, 64]
const sizes = [12, 16, 24, 32, 48, 64, 128]
await asyncForEach(Object.entries(flagTypes), async ([key, options]) => {
console.log(key, options)

View File

@@ -1,6 +1,6 @@
{
"name": "@tabler/flags-png",
"version": "1.0.0",
"version": "0.0.1",
"scripts": {
"build": "pnpm run clean && pnpm run copy && node ./build.mjs",
"copy": "pnpm run copy:license",
@@ -9,5 +9,8 @@
},
"devDependencies": {
"sharp": "^0.33.2"
}
},
"files": [
"dist/*"
]
}

View File

@@ -1,6 +1,6 @@
{
"name": "@tabler/flags-react",
"version": "1.0.0",
"version": "0.0.1",
"publishConfig": {
"access": "public"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@tabler/flags-vue",
"version": "1.0.0",
"version": "0.0.1",
"publishConfig": {
"access": "public"
},

View File

@@ -1,10 +1,13 @@
{
"name": "@tabler/flags",
"version": "1.0.0",
"version": "0.0.1",
"scripts": {
"build": "pnpm run clean && pnpm run copy && node ./build.mjs",
"copy": "pnpm run copy:license",
"copy:license": "cp ../../LICENSE ./LICENSE",
"clean": "find . ! -name '.gitkeep' -path './dist/*' -exec rm -rf {} +"
}
},
"files": [
"dist/*"
]
}