From c5145a2d76b35a93cb459282b4ea5b5778c2aa97 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Thu, 14 Mar 2024 19:14:23 +0200 Subject: [PATCH] new file: projects/typescriptlang.org/package.yml (#5594) --- projects/typescriptlang.org/package.yml | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 projects/typescriptlang.org/package.yml diff --git a/projects/typescriptlang.org/package.yml b/projects/typescriptlang.org/package.yml new file mode 100644 index 00000000..95e6bb38 --- /dev/null +++ b/projects/typescriptlang.org/package.yml @@ -0,0 +1,40 @@ +distributable: + url: https://registry.npmjs.org/typescript/-/typescript-{{version}}.tgz + strip-components: 1 + +versions: + npm: typescript + +dependencies: + nodejs.org: ^20 + +build: + dependencies: + npmjs.com: '*' + script: + - npm install $ARGS + env: + ARGS: + - -ddd + - --global + - --build-from-source + - --prefix={{prefix}} + - --install-links + - --unsafe-perm + +provides: + - bin/tsc + +test: + - run: tsc $FIXTURE + fixture: + content: | + class Test { + greet() { + return "Hello, world!"; + } + }; + var test = new Test(); + document.body.innerHTML = test.greet(); + extname: ts + - tsc --version | grep {{version}}