Skip to content

Commit

Permalink
build: release v1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
vangleer committed Jan 5, 2024
1 parent 7df48f0 commit 37b6592
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@es-drager/root",
"version": "1.2.4",
"version": "1.2.6",
"description": "A draggable, resizable, rotatable component based on vue3",
"keywords": [
"drag",
Expand Down
4 changes: 2 additions & 2 deletions packages/drager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "es-drager",
"version": "1.2.4",
"version": "1.2.6",
"description": "A draggable, resizable, rotatable component based on vue3",
"keywords": [
"drag",
Expand All @@ -26,7 +26,7 @@
".": {
"import": "./lib/index.es.js",
"require": "./lib/index.umd.js",
"types": "./lib/drager/index.d.ts"
"types": "./lib/index.d.ts"
},
"./*": "./*"
},
Expand Down
7 changes: 4 additions & 3 deletions packages/drager/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import { resolve } from 'path'
export default defineConfig({
plugins: [
dts({
// root: resolve(__dirname, '../..'),
tsConfigFilePath: resolve(__dirname, '../../tsconfig.json')
tsConfigFilePath: resolve(__dirname, '../../tsconfig.json'),
outputDir: './lib',
exclude: ['./lib/**/*', 'node_modules']
}),
vue()
],
build: {
outDir: 'lib',
outDir: resolve(__dirname, 'lib'),
lib: {
entry: resolve(__dirname, './index.ts'),
name: 'ESDrager',
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function publishPackage(pkgName, version) {

// execSync(`git commit -m "chore: release v${version}"`, { stdio: 'inherit' })
// execSync(`git tag -a v${version} -m "v${version}"`, { stdio: 'inherit' })
// execSync('npm publish', { cwd: pkgRoot, stdio: 'inherit' })
execSync('npm publish', { cwd: pkgRoot, stdio: 'inherit' })

console.log(chalk.green(`Successfully published ${pkgName}@${version}`))
} catch (e) {
Expand Down

0 comments on commit 37b6592

Please sign in to comment.