Skip to content

Commit

Permalink
Merge pull request #11 from futura-dev/fix/import-in-code
Browse files Browse the repository at this point in the history
chore: change import strategy
  • Loading branch information
faridevnz committed Oct 30, 2024
2 parents 4e76eb9 + 2e3c16b commit e613f92
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 1,788 deletions.
10 changes: 0 additions & 10 deletions .cosmofactory.json

This file was deleted.

1 change: 1 addition & 0 deletions examples/commands-in-code/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
16 changes: 12 additions & 4 deletions examples/commands-in-code/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { migrate, MigrateDevCommand, MigrateDeployCommand, MigrateResetCommand } from "@futura-dev/cosmoprism/migrate";
import {
migrate,
MigrateDevCommand,
MigrateDeployCommand,
MigrateResetCommand
} from "@futura-dev/cosmoprism";

migrate.dev({ mode: 'all' } satisfies MigrateDevCommand)
migrate.deploy({ mode: 'tenant', tenant: 'fake-tenant' } satisfies MigrateDeployCommand)
migrate.reset({ mode: 'central' } satisfies MigrateResetCommand)
migrate.dev({ mode: "all" } satisfies MigrateDevCommand);
migrate.deploy({
mode: "tenant",
tenant: "fake-tenant"
} satisfies MigrateDeployCommand);
migrate.reset({ mode: "central" } satisfies MigrateResetCommand);
22 changes: 22 additions & 0 deletions examples/commands-in-code/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"strict": true,
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "esnext",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": true,
"noImplicitAny": true,
"strictBindCallApply": true,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false
}
}
Loading

0 comments on commit e613f92

Please sign in to comment.