From 8bb293b5063f8e031366655883fd215fdf970e02 Mon Sep 17 00:00:00 2001 From: Rexogamer Date: Sat, 20 Jul 2024 22:42:05 +0100 Subject: [PATCH] refactor: move termivolt files to subdirectory --- .github/workflows/publish.yml | 7 +++---- CHANGELOG.md => packages/termivolt/CHANGELOG.md | 0 LICENSE => packages/termivolt/LICENSE | 0 README.md => packages/termivolt/README.md | 0 package.json => packages/termivolt/package.json | 0 {scripts => packages/termivolt/scripts}/versionInjector.js | 0 {src => packages/termivolt/src}/commands/archive.ts | 0 {src => packages/termivolt/src}/commands/ban.ts | 0 {src => packages/termivolt/src}/commands/fetch.ts | 0 {src => packages/termivolt/src}/commands/help.ts | 0 {src => packages/termivolt/src}/commands/index.ts | 0 {src => packages/termivolt/src}/commands/interactive.ts | 0 {src => packages/termivolt/src}/commands/kick.ts | 0 {src => packages/termivolt/src}/commands/rmfromgroup.ts | 0 {src => packages/termivolt/src}/commands/send.ts | 0 {src => packages/termivolt/src}/index.ts | 0 {src => packages/termivolt/src}/lib/constants/functions.ts | 0 {src => packages/termivolt/src}/lib/constants/index.ts | 0 {src => packages/termivolt/src}/lib/constants/strings.ts | 0 {src => packages/termivolt/src}/lib/constants/styles.ts | 0 {src => packages/termivolt/src}/lib/index.ts | 0 {src => packages/termivolt/src}/types/Interactive.d.ts | 0 22 files changed, 3 insertions(+), 4 deletions(-) rename CHANGELOG.md => packages/termivolt/CHANGELOG.md (100%) rename LICENSE => packages/termivolt/LICENSE (100%) rename README.md => packages/termivolt/README.md (100%) rename package.json => packages/termivolt/package.json (100%) rename {scripts => packages/termivolt/scripts}/versionInjector.js (100%) rename {src => packages/termivolt/src}/commands/archive.ts (100%) rename {src => packages/termivolt/src}/commands/ban.ts (100%) rename {src => packages/termivolt/src}/commands/fetch.ts (100%) rename {src => packages/termivolt/src}/commands/help.ts (100%) rename {src => packages/termivolt/src}/commands/index.ts (100%) rename {src => packages/termivolt/src}/commands/interactive.ts (100%) rename {src => packages/termivolt/src}/commands/kick.ts (100%) rename {src => packages/termivolt/src}/commands/rmfromgroup.ts (100%) rename {src => packages/termivolt/src}/commands/send.ts (100%) rename {src => packages/termivolt/src}/index.ts (100%) rename {src => packages/termivolt/src}/lib/constants/functions.ts (100%) rename {src => packages/termivolt/src}/lib/constants/index.ts (100%) rename {src => packages/termivolt/src}/lib/constants/strings.ts (100%) rename {src => packages/termivolt/src}/lib/constants/styles.ts (100%) rename {src => packages/termivolt/src}/lib/index.ts (100%) rename {src => packages/termivolt/src}/types/Interactive.d.ts (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5faa7c7..0708609 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: npm-publish +name: Publish to NPM on new releases on: push: branches: @@ -11,9 +11,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Prepare env - # cd packages/termivolt run: | - yarn set version classic + cd packages/termivolt yarn install --prod=false yarn build - name: Publish if version has been updated @@ -21,7 +20,7 @@ jobs: with: tag_name: "v%s" tag_message: "v%s" - commit_pattern: "^release: (\\S+)" + commit_pattern: "^release(termivolt): (\\S+)" workspace: "." publish_command: "yarn" publish_args: "--non-interactive" diff --git a/CHANGELOG.md b/packages/termivolt/CHANGELOG.md similarity index 100% rename from CHANGELOG.md rename to packages/termivolt/CHANGELOG.md diff --git a/LICENSE b/packages/termivolt/LICENSE similarity index 100% rename from LICENSE rename to packages/termivolt/LICENSE diff --git a/README.md b/packages/termivolt/README.md similarity index 100% rename from README.md rename to packages/termivolt/README.md diff --git a/package.json b/packages/termivolt/package.json similarity index 100% rename from package.json rename to packages/termivolt/package.json diff --git a/scripts/versionInjector.js b/packages/termivolt/scripts/versionInjector.js similarity index 100% rename from scripts/versionInjector.js rename to packages/termivolt/scripts/versionInjector.js diff --git a/src/commands/archive.ts b/packages/termivolt/src/commands/archive.ts similarity index 100% rename from src/commands/archive.ts rename to packages/termivolt/src/commands/archive.ts diff --git a/src/commands/ban.ts b/packages/termivolt/src/commands/ban.ts similarity index 100% rename from src/commands/ban.ts rename to packages/termivolt/src/commands/ban.ts diff --git a/src/commands/fetch.ts b/packages/termivolt/src/commands/fetch.ts similarity index 100% rename from src/commands/fetch.ts rename to packages/termivolt/src/commands/fetch.ts diff --git a/src/commands/help.ts b/packages/termivolt/src/commands/help.ts similarity index 100% rename from src/commands/help.ts rename to packages/termivolt/src/commands/help.ts diff --git a/src/commands/index.ts b/packages/termivolt/src/commands/index.ts similarity index 100% rename from src/commands/index.ts rename to packages/termivolt/src/commands/index.ts diff --git a/src/commands/interactive.ts b/packages/termivolt/src/commands/interactive.ts similarity index 100% rename from src/commands/interactive.ts rename to packages/termivolt/src/commands/interactive.ts diff --git a/src/commands/kick.ts b/packages/termivolt/src/commands/kick.ts similarity index 100% rename from src/commands/kick.ts rename to packages/termivolt/src/commands/kick.ts diff --git a/src/commands/rmfromgroup.ts b/packages/termivolt/src/commands/rmfromgroup.ts similarity index 100% rename from src/commands/rmfromgroup.ts rename to packages/termivolt/src/commands/rmfromgroup.ts diff --git a/src/commands/send.ts b/packages/termivolt/src/commands/send.ts similarity index 100% rename from src/commands/send.ts rename to packages/termivolt/src/commands/send.ts diff --git a/src/index.ts b/packages/termivolt/src/index.ts similarity index 100% rename from src/index.ts rename to packages/termivolt/src/index.ts diff --git a/src/lib/constants/functions.ts b/packages/termivolt/src/lib/constants/functions.ts similarity index 100% rename from src/lib/constants/functions.ts rename to packages/termivolt/src/lib/constants/functions.ts diff --git a/src/lib/constants/index.ts b/packages/termivolt/src/lib/constants/index.ts similarity index 100% rename from src/lib/constants/index.ts rename to packages/termivolt/src/lib/constants/index.ts diff --git a/src/lib/constants/strings.ts b/packages/termivolt/src/lib/constants/strings.ts similarity index 100% rename from src/lib/constants/strings.ts rename to packages/termivolt/src/lib/constants/strings.ts diff --git a/src/lib/constants/styles.ts b/packages/termivolt/src/lib/constants/styles.ts similarity index 100% rename from src/lib/constants/styles.ts rename to packages/termivolt/src/lib/constants/styles.ts diff --git a/src/lib/index.ts b/packages/termivolt/src/lib/index.ts similarity index 100% rename from src/lib/index.ts rename to packages/termivolt/src/lib/index.ts diff --git a/src/types/Interactive.d.ts b/packages/termivolt/src/types/Interactive.d.ts similarity index 100% rename from src/types/Interactive.d.ts rename to packages/termivolt/src/types/Interactive.d.ts