22
22
LOG = logging .getLogger (__name__ )
23
23
24
24
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"
27
29
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"
30
30
31
31
32
32
def validate_no (value ):
@@ -40,7 +40,6 @@ class TypescriptLanguagePlugin(LanguagePlugin):
40
40
ENTRY_POINT = "dist/handlers.entrypoint"
41
41
TEST_ENTRY_POINT = "dist/handlers.testEntrypoint"
42
42
CODE_URI = "./"
43
- SUPPORT_LIB_URI = f"{ REPO_URL } /releases/download/{ REPO_RELEASE_SUFFIX } "
44
43
45
44
def __init__ (self ):
46
45
self .env = self ._setup_jinja_env (
@@ -65,7 +64,7 @@ def _init_from_project(self, project):
65
64
self ._use_docker = project .settings .get ("useDocker" , True )
66
65
self .package_root = project .root / "src"
67
66
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
69
68
70
69
def _init_settings (self , project ):
71
70
LOG .debug ("Writing settings" )
0 commit comments