new file: projects/typescriptlang.org/package.yml (#5594)

This commit is contained in:
Andrew 2024-03-14 19:14:23 +02:00 committed by GitHub
parent 1ba2e18d3d
commit c5145a2d76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}}