Skip to content

Commit 8739ae9

Browse files
committed
chore: fix commands
1 parent b2edf0d commit 8739ae9

File tree

4 files changed

+35
-11
lines changed

4 files changed

+35
-11
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"docs:dev": "cd ./docs && pnpm dev && cd -",
2020
"postinstall": "husky install",
2121
"release": "./scripts/release.sh",
22-
"ci:copy-mds": "tsx scripts/copy-mds.ts",
22+
"ci:copy-mds": "node scripts/copy-mds.mjs",
2323
"ci:publish": "pnpm build && pnpm publish --provenance --access public -r",
2424
"ci:version": "pnpm changeset version && pnpm ci:copy-mds",
25-
"ci:tag": "tsx ./scripts/tag-release.ts"
25+
"ci:tag": "node scripts/tag-release.mjs"
2626
},
2727
"devDependencies": {
2828
"@changesets/cli": "^2.27.1",

packages/vee-validate/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Abdelrahman Awad <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

scripts/copy-mds.mjs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ import chalk from 'chalk';
66
const __filename = fileURLToPath(import.meta.url);
77
const __dirname = dirname(__filename);
88

9-
fs.copyFileSync(path.resolve(__dirname, '../README.md'), path.resolve(__dirname, '../packages/core/README.md'));
10-
console.log(chalk.green('📄 README.md copied to packages/core'));
9+
fs.copyFileSync(path.resolve(__dirname, '../README.md'), path.resolve(__dirname, '../packages/vee-validate/README.md'));
10+
console.log(chalk.green('📄 README.md copied to packages/vee-validate'));
1111

12-
fs.copyFileSync(path.resolve(__dirname, '../LICENSE'), path.resolve(__dirname, '../packages/core/LICENSE'));
13-
console.log(chalk.green('📄 LICENSE copied to packages/core'));
12+
fs.copyFileSync(path.resolve(__dirname, '../LICENSE'), path.resolve(__dirname, '../packages/vee-validate/LICENSE'));
13+
console.log(chalk.green('📄 LICENSE copied to packages/vee-validate'));
1414

15-
fs.copyFileSync(path.resolve(__dirname, '../packages/core/CHANGELOG.md'), path.resolve(__dirname, '../CHANGELOG.md'));
15+
fs.copyFileSync(
16+
path.resolve(__dirname, '../packages/vee-validate/CHANGELOG.md'),
17+
path.resolve(__dirname, '../CHANGELOG.md'),
18+
);
1619
console.log(chalk.green('📄 CHANGELOG.md copied to root'));

scripts/tag-release.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { version } from '../packages/core/package.json';
1+
import pkg from '../packages/vee-validate/package.json' with { type: 'json' };
22
import { execSync } from 'node:child_process';
33
import chalk from 'chalk';
44

55
try {
6-
execSync(`git tag v${version}`);
7-
console.log(chalk.green(`🔖 Tagged release v${version}`));
6+
execSync(`git tag v${pkg.version}`);
7+
console.log(chalk.green(`🔖 Tagged release v${pkg.version}`));
88
} catch (error) {
9-
console.log(chalk.red(`❌ Failed to tag release v${version}`));
9+
console.log(chalk.red(`❌ Failed to tag release v${pkg.version}`));
1010
console.log(error);
1111
process.exit(1);
1212
}

0 commit comments

Comments
 (0)