Skip to content

Commit 576fa67

Browse files
committed
VERSION BUMP
1 parent 83217ad commit 576fa67

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "euro-plate-validator",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "European license plate validator (Russia excluded).Syntax-only validation via regex for multiple EU/EEA countries including Italy, UK, Germany, France, Spain and more.Supports Node.js (TypeScript package) and PHP library.",
55
"type": "module",
66
"main": "./dist/index.cjs",
@@ -13,8 +13,11 @@
1313
"types": "./dist/index.d.ts"
1414
}
1515
},
16+
"files": [
17+
"dist/"
18+
],
1619
"bin": {
17-
"euro-plate-validator": "./bin/cli.mjs"
20+
"euro-plate-validator": "./dist/cli.mjs"
1821
},
1922
"sideEffects": false,
2023
"publishConfig": {
@@ -29,7 +32,7 @@
2932
},
3033
"homepage": "https://github.com/CodeCornTech/euro-plate-validator#readme",
3134
"scripts": {
32-
"build": "rm -rf dist && tsc && node ./scripts/build-cjs.js && node ./scripts/postbuild-nocheck.js",
35+
"build": "rm -rf dist && tsc && node ./scripts/build-cjs.js && node ./scripts/postbuild-nocheck.js && node ./scripts/copy-cli.js",
3336
"prepublishOnly": "npm run build",
3437
"test": "node -e \"import('./dist/index.js').then(m=>console.log(m.validatePlate('AB 123 CD',['IT'])))\"",
3538
"cli-test": "node ./bin/cli.mjs \"AB 123 CD\" --countries IT --type car --pretty"

scripts/copy-cli.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { cpSync } from "node:fs";
2+
import { dirname, resolve } from "node:path";
3+
import { fileURLToPath } from "node:url";
4+
5+
const __dirname = dirname(fileURLToPath(import.meta.url));
6+
const src = resolve(__dirname, "..", "bin", "cli.mjs");
7+
const dst = resolve(__dirname, "..", "dist", "cli.mjs");
8+
9+
cpSync(src, dst, { recursive: false });
10+
console.log("Copied bin/cli.mjs -> dist/cli.mjs");

scripts/make_release.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
gh release create v"$(node -p "require('./package.json').version")" \
4+
--title "v$(node -p "require('./package.json').version")" \
5+
--notes "• Multi-country EU plates (car & IT motorcycle)
6+
• CLI: npx @codecorn/euro-plate-validator \"AB 123 CD\" --countries IT --type car
7+
• PHP variant in php_variant/
8+
• Build ignores php_variant, bin, node_modules, dist"

0 commit comments

Comments
 (0)