Skip to content

Commit

Permalink
Merge pull request #11 from ScopeSV/rename-other-stuff
Browse files Browse the repository at this point in the history
fix: more renaming
  • Loading branch information
ScopeSV authored Oct 26, 2023
2 parents dddda95 + f0cf64e commit a385c3a
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 26 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish
on:
push:
branches:
- main

jobs:
npm_publish:
name: Publish to npm
runs-on: ubuntu-latest
needs: [release-please]
environment:
name: publish
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: |
npm ci
npm run build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22 changes: 1 addition & 21 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,4 @@ jobs:
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: kycli
npm_publish:
name: Publish to npm
runs-on: ubuntu-latest
needs: [release-please]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: |
npm ci
npm run build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package-name: kyseline
3 changes: 3 additions & 0 deletions .kyselinecfg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"migrationDir": "./migrations"
}
2 changes: 1 addition & 1 deletion src/config-file/ConfigParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class ConfigParser {
}

#readConfigFile = () => {
const configPath = path.resolve(process.cwd() + '/.kyselycli.json')
const configPath = path.resolve(process.cwd() + '/.kyselinecfg.json')

if (!fs.existsSync(configPath)) {
console.error("Couldn't find .kyselycli.json file")
Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import createMigrationHandler from './handlers/migrationHandler'

const program = new Command()

program.name('kysely-cli').description('Cli tool for kysely').version('0.0.1')
program.name('kyseline').description('Cli tool for kysely').version('0.0.1')

program
.command('migration')
Expand All @@ -13,13 +13,13 @@ program
console.log(`
MAKE:
To create a new table:
$ kycli migration:make create_foo_table foo:string bar:integer
$ kyseline migration:make create_foo_table foo:string bar:integer
To add fields to an existing table:
$ kycli migration:make add_foo_from_foo_table foo:string bar:integer
$ kyseline migration:make add_foo_from_foo_table foo:string bar:integer
To remove fields from an existing table:
$ kycli migration:make remove_foo_from_footable foo
$ kyseline migration:make remove_foo_from_footable foo
`)
})
.action((cmdObj) => {
Expand Down

0 comments on commit a385c3a

Please sign in to comment.