Skip to content

Commit 77ff1bc

Browse files
committed
implement import and export handling for python
1 parent 6dc8a21 commit 77ff1bc

File tree

4 files changed

+852
-317
lines changed

4 files changed

+852
-317
lines changed

examples/node/nestjs-typescript/src/collections/collections.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import def, { create, getAll, getByUserId, update, deleteCollection, getRandomCo
33
// import def from './collections.data';
44
import { Collection } from './collections.data';
55

6-
console.log(def)
76
@Injectable()
87
export class CollectionsService {
98
createCollection(data: CollectionPartial): Collection {

packages/cli/src/languagesPlugins/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import JavascriptPlugin from "./javascript";
2-
// import PythonPlugin from "./python";
2+
import PythonPlugin from "./python";
33
import { LanguagePlugin } from "./types";
44

55
export function getLanguagePlugin(
@@ -13,8 +13,8 @@ export function getLanguagePlugin(
1313
return new JavascriptPlugin(entryPointPath, false);
1414
case "ts":
1515
return new JavascriptPlugin(entryPointPath, true);
16-
// case "py":
17-
// return new PythonPlugin(entryPointPath);
16+
case "py":
17+
return new PythonPlugin(entryPointPath);
1818
default:
1919
throw new Error(`Unsupported file type: ${ext}`);
2020
}

0 commit comments

Comments
 (0)