File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11import logging
22
3- __version__ = "0.5 .0"
3+ __version__ = "1.0 .0"
44
55logging .getLogger (__name__ ).addHandler (logging .NullHandler ())
Original file line number Diff line number Diff line change 2222LOG = logging .getLogger (__name__ )
2323
2424EXECUTABLE = "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"
2729MAIN_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
3232def 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" )
You can’t perform that action at this time.
0 commit comments