mirror of
https://github.com/tabler/tabler-flags.git
synced 2026-01-25 04:06:25 +00:00
build fixes
This commit is contained in:
@@ -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')
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "flags",
|
||||
"version": "1.0.0",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"scripts": {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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/*"
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tabler/flags-react",
|
||||
"version": "1.0.0",
|
||||
"version": "0.0.1",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tabler/flags-vue",
|
||||
"version": "1.0.0",
|
||||
"version": "0.0.1",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
||||
@@ -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/*"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user