Skip to content

Commit 4a03d0b

Browse files
authored
Codegen change & Version Bump (#47)
1 parent 1eeffd7 commit 4a03d0b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

python/rpdk/typescript/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
22

3-
__version__ = "0.5.0"
3+
__version__ = "1.0.0"
44

55
logging.getLogger(__name__).addHandler(logging.NullHandler())

python/rpdk/typescript/codegen.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
LOG = logging.getLogger(__name__)
2323

2424
EXECUTABLE = "cfn"
25-
SUPPORT_LIB_NAME = "cfn-rpdk"
26-
SUPPORT_LIB_VERSION = "0.5.0"
25+
SUPPORT_LIB_NAME = (
26+
"@amazon-web-services-cloudformation/cloudformation-cli-typescript-lib"
27+
)
28+
SUPPORT_LIB_VERSION = "^1.0.1"
2729
MAIN_HANDLER_FUNCTION = "TypeFunction"
28-
REPO_URL = "https://github.com/eduardomourar/cloudformation-cli-typescript-plugin"
29-
REPO_RELEASE_SUFFIX = f"v{SUPPORT_LIB_VERSION}/cfn-rpdk-{SUPPORT_LIB_VERSION}.tgz"
3030

3131

3232
def validate_no(value):
@@ -40,7 +40,6 @@ class TypescriptLanguagePlugin(LanguagePlugin):
4040
ENTRY_POINT = "dist/handlers.entrypoint"
4141
TEST_ENTRY_POINT = "dist/handlers.testEntrypoint"
4242
CODE_URI = "./"
43-
SUPPORT_LIB_URI = f"{REPO_URL}/releases/download/{REPO_RELEASE_SUFFIX}"
4443

4544
def __init__(self):
4645
self.env = self._setup_jinja_env(
@@ -65,7 +64,7 @@ def _init_from_project(self, project):
6564
self._use_docker = project.settings.get("useDocker", True)
6665
self.package_root = project.root / "src"
6766
self._build_command = project.settings.get("buildCommand", None)
68-
self._lib_path = project.settings.get("supportLibrary", self.SUPPORT_LIB_URI)
67+
self._lib_path = SUPPORT_LIB_VERSION
6968

7069
def _init_settings(self, project):
7170
LOG.debug("Writing settings")

0 commit comments

Comments
 (0)