mirror of
https://github.com/extractions/setup-just
synced 2026-09-07 20:04:00 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53165ef7e7 | ||
|
|
3ed9febd41 | ||
|
|
cf2bee9c93 | ||
|
|
c26183993c | ||
|
|
f8a3cce218 | ||
|
|
e1fdbd94e1 | ||
|
|
2674ac3f92 | ||
|
|
e33e0265a0 | ||
|
|
e8fa8d355d | ||
|
|
6e1de3cc40 | ||
|
|
d91bfae12f | ||
|
|
dd310ad5a9 | ||
|
|
b88c09d1cb | ||
|
|
dcec242065 | ||
|
|
fbd91a81bd | ||
|
|
502448742b | ||
|
|
1b96160c16 | ||
|
|
69d82fb023 | ||
|
|
f1404cf972 | ||
|
|
82fe2e1caf | ||
|
|
ad659545e1 | ||
|
|
95b912dc5d | ||
|
|
8eeb0a1f9c | ||
|
|
8843f3ad27 | ||
|
|
bd335a2937 | ||
|
|
5675d4c3ba | ||
|
|
7fef8ee4ca | ||
|
|
aa5d15c144 | ||
|
|
944b86dbba | ||
|
|
44872a687b | ||
|
|
fbe8e2010e | ||
|
|
43bd6a1743 | ||
|
|
fc2abd7b0c | ||
|
|
db3c7713bb | ||
|
|
849f2636c6 | ||
|
|
1187799127 |
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/eslint-recommended"
|
||||
],
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2018,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
"@typescript-eslint"
|
||||
],
|
||||
"rules": {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
# Keep GitHub Actions up to date with GitHub's Dependabot...
|
||||
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
|
||||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
groups:
|
||||
github-actions:
|
||||
patterns:
|
||||
- "*" # Group all Actions updates into a single larger pull request
|
||||
schedule:
|
||||
interval: weekly
|
||||
@@ -0,0 +1,41 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
schedule:
|
||||
- cron: 0 12 1 * *
|
||||
|
||||
jobs:
|
||||
test-latest:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Setup just
|
||||
uses: ./
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Test
|
||||
run: |
|
||||
[ "$(just --justfile tests/Justfile)" = "Test..." ]
|
||||
shell: bash
|
||||
|
||||
test-version:
|
||||
needs: test-latest
|
||||
strategy:
|
||||
matrix: # https://github.com/casey/just/releases
|
||||
just-version: [0.5.11, 0.6.1, 0.7.3, 0.8.7, 0.9.9, 0.10.7, 0.11.2, 1.5.0, 1.23.0, 1.40.0]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Run self
|
||||
uses: ./
|
||||
with:
|
||||
just-version: ${{ matrix.just-version }}
|
||||
- name: Check version
|
||||
run: just --version | grep -E "^just v?${{ matrix.just-version }}$"
|
||||
- name: Test
|
||||
run: |
|
||||
[ "$(just --justfile tests/Justfile)" = "Test..." ]
|
||||
@@ -1,37 +0,0 @@
|
||||
name: build
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
- run: npm install --global @zeit/ncc
|
||||
- run: npm ci
|
||||
- run: npm run lint
|
||||
- run: npm run build
|
||||
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Run self
|
||||
uses: ./
|
||||
with:
|
||||
just-version: 0.4
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Check just version
|
||||
run: just --version | grep "^just v0.4.5$"
|
||||
shell: bash
|
||||
+1
-112
@@ -1,112 +1 @@
|
||||
|
||||
# Created by https://www.gitignore.io/api/node
|
||||
# Edit at https://www.gitignore.io/?templates=node
|
||||
|
||||
### Node ###
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# TypeScript v1 declaration files
|
||||
typings/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
|
||||
# next.js build output
|
||||
.next
|
||||
|
||||
# nuxt.js build output
|
||||
.nuxt
|
||||
|
||||
# rollup.js default build output
|
||||
dist/*
|
||||
!dist/index.js
|
||||
|
||||
# Uncomment the public line if your project uses Gatsby
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
|
||||
# public
|
||||
|
||||
# Storybook build outputs
|
||||
.out
|
||||
.storybook-out
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# Temporary folders
|
||||
tmp/
|
||||
temp/
|
||||
|
||||
# End of https://www.gitignore.io/api/node
|
||||
/runner
|
||||
|
||||
@@ -1,32 +1,62 @@
|
||||
# `setup-just` action
|
||||
# 🤖 `setup-just` action
|
||||
|
||||

|
||||
[](https://github.com/extractions/setup-just/actions/workflows/build.yaml)
|
||||
|
||||
This GitHub Action will install the latest release of the
|
||||
This GitHub Action will install a release of the
|
||||
[just](https://github.com/casey/just) command runner for you.
|
||||
|
||||
## Usage
|
||||
|
||||
### Inputs
|
||||
### Examples
|
||||
|
||||
| Name | Required | Description | Type | Default |
|
||||
| -------------- | -------- | -------------------------------------------------------- | ------ | ------- |
|
||||
| `just-version` | no | A valid semver specification for the version to install. | string | * |
|
||||
|
||||
|
||||
### Basic example
|
||||
|
||||
Add the following to your workflow.
|
||||
In most cases all you will need is the following in your workflow.
|
||||
|
||||
```yaml
|
||||
- uses: extractions/setup-just@v1
|
||||
with:
|
||||
just-version: 0.5
|
||||
env:
|
||||
# this is not required but add it if you get any rate limiting issues
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: extractions/setup-just@v4
|
||||
```
|
||||
|
||||
If you want a specific version of `just` you can specify this by passing the
|
||||
`just-version` input.
|
||||
|
||||
```yaml
|
||||
- uses: extractions/setup-just@v4
|
||||
with:
|
||||
just-version: '1.46.0'
|
||||
```
|
||||
|
||||
To avoid rate-limiting, the default Github token (available to all actions) is
|
||||
automatically used to authenticate calls to Github. To override it, pass the
|
||||
input `github-token`.
|
||||
|
||||
```yaml
|
||||
- uses: extractions/setup-just@v4
|
||||
with:
|
||||
github-token: ${{ secrets.MY_GITHUB_TOKEN }}
|
||||
```
|
||||
|
||||
### Inputs
|
||||
|
||||
| Name | Required | Description | Type | Default |
|
||||
| -------------- | -------- | -------------------------------------------- | ------ | --------------------- |
|
||||
| `just-version` | no | A valid NPM-style semver specification. | string | * |
|
||||
| `github-token` | no | A Github token to authenticate API requests. | string | `${{ github.token }}` |
|
||||
|
||||
The semver specification is passed directly to NPM's [semver
|
||||
package](https://www.npmjs.com/package/semver). This GitHub Action will install
|
||||
the latest matching release. Examples include
|
||||
|
||||
- `just-version: '*'` latest version (default).
|
||||
- `just-version: '1'` equivalent to `>=1.0.0 <2.0.0`.
|
||||
- `just-version: '1.2'` equivalent to `>=1.2.0 <2.0.0`.
|
||||
- `just-version: '1.2.3'` equivalent to `=1.2.3`.
|
||||
- `just-version: '^1.2.3'` equivalent to `>=1.2.3 <2.0.0`.
|
||||
|
||||
## Development
|
||||
|
||||
This action is a composite action and the installation logic is done in a shared
|
||||
library located at
|
||||
[@extractions/setup-crate](https://github.com/extractions/setup-crate).
|
||||
|
||||
## License
|
||||
|
||||
Licensed under either of
|
||||
|
||||
+11
-2
@@ -7,6 +7,15 @@ branding:
|
||||
inputs:
|
||||
just-version:
|
||||
description: 'A valid semver specifier of the just version to install'
|
||||
github-token:
|
||||
description: 'Github token to use to authenticate downloads'
|
||||
required: false
|
||||
default: ${{ github.token }}
|
||||
runs:
|
||||
using: 'node12'
|
||||
main: 'dist/index.js'
|
||||
using: composite
|
||||
steps:
|
||||
- uses: extractions/setup-crate@0551596312d4008a6dfbc4d3c38fa20eaef46d2d # v2.0.0
|
||||
with:
|
||||
repo: casey/just
|
||||
version: ${{ inputs.just-version }}
|
||||
github-token: ${{ inputs.github-token }}
|
||||
|
||||
Vendored
-1
File diff suppressed because one or more lines are too long
Generated
-1412
File diff suppressed because it is too large
Load Diff
@@ -1,37 +0,0 @@
|
||||
{
|
||||
"name": "setup-just",
|
||||
"version": "1.2.0",
|
||||
"description": "Install the just command runner",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"fmt": "node node_modules/.bin/prettier --write **/*.ts",
|
||||
"lint": "node node_modules/.bin/eslint **/*.ts",
|
||||
"build": "rm -rf dist/ && ncc build src/index.ts --minify",
|
||||
"run": "npm run build && node dist/index.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/extractions/setup-just.git"
|
||||
},
|
||||
"author": "Ross MacArthur <ross@macarthur.io>",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/extractions/setup-just/issues"
|
||||
},
|
||||
"homepage": "https://github.com/extractions/setup-just#readme",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.2.5",
|
||||
"@actions/tool-cache": "^1.3.4",
|
||||
"@octokit/rest": "^18.0.5",
|
||||
"semver": "^7.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.10.1",
|
||||
"@types/semver": "^7.3.3",
|
||||
"@typescript-eslint/eslint-plugin": "^4.1.0",
|
||||
"@typescript-eslint/parser": "^4.1.0",
|
||||
"eslint": "^7.9.0",
|
||||
"prettier": "^2.1.1",
|
||||
"typescript": "^4.0.2"
|
||||
}
|
||||
}
|
||||
-156
@@ -1,156 +0,0 @@
|
||||
import * as core from "@actions/core";
|
||||
import * as tc from "@actions/tool-cache";
|
||||
import * as semver from "semver";
|
||||
import { Octokit } from "@octokit/rest";
|
||||
|
||||
/**
|
||||
* @returns {string} the Rust target specifier for the current platform.
|
||||
*/
|
||||
function getTarget(): string {
|
||||
const { arch, platform } = process;
|
||||
if (arch == "x64") {
|
||||
if (platform == "linux") {
|
||||
return "x86_64-unknown-linux-musl";
|
||||
} else if (platform == "darwin") {
|
||||
return "x86_64-apple-darwin";
|
||||
} else if (platform == "win32") {
|
||||
return "x86_64-pc-windows-msvc";
|
||||
}
|
||||
}
|
||||
throw new Error(
|
||||
`failed to determine current target; arch = ${arch}, platform = ${platform}`
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a tool to install from GitHub.
|
||||
*/
|
||||
interface Tool {
|
||||
/** The GitHub owner (username or organization). */
|
||||
owner: string;
|
||||
/** The name of the tool and the GitHub repo name. */
|
||||
name: string;
|
||||
/** A valid semantic version specifier for the tool. */
|
||||
versionSpec?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a single release for a {@link Tool}.
|
||||
*/
|
||||
interface Release {
|
||||
/** The exact release tag. */
|
||||
version: string;
|
||||
/** The asset download URL. */
|
||||
downloadUrl: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch the latest matching release for the given tool.
|
||||
*
|
||||
* @param tool the tool to fetch a release for.
|
||||
* @param target the Rust target specifier that should be included in the GitHub
|
||||
* release asset.
|
||||
*
|
||||
* @returns {Promise<Release>} a single GitHub release.
|
||||
*/
|
||||
async function getRelease(tool: Tool, target: string): Promise<Release> {
|
||||
const { owner, name, versionSpec } = tool;
|
||||
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
|
||||
return octokit
|
||||
.paginate(
|
||||
octokit.repos.listReleases,
|
||||
{ owner, repo: name },
|
||||
(response, done) => {
|
||||
const releases = response.data
|
||||
.map((rel) => {
|
||||
const asset = rel.assets.find((ass) => ass.name.includes(target));
|
||||
if (asset) {
|
||||
return {
|
||||
version: rel.tag_name.replace(/^v/, ""),
|
||||
downloadUrl: asset.browser_download_url,
|
||||
};
|
||||
}
|
||||
})
|
||||
.filter((rel) =>
|
||||
rel && versionSpec
|
||||
? semver.satisfies(rel.version, versionSpec)
|
||||
: true
|
||||
);
|
||||
if (releases && done) {
|
||||
done();
|
||||
}
|
||||
return releases;
|
||||
}
|
||||
)
|
||||
.then((releases) => {
|
||||
const release = releases.find((release) => release != null);
|
||||
if (release === undefined) {
|
||||
throw new Error(
|
||||
`no release for ${name} matching version specifier ${versionSpec}`
|
||||
);
|
||||
}
|
||||
return release;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks the tool cache for the tool, and if it is missing fetches it from
|
||||
* GitHub releases.
|
||||
*
|
||||
* @param tool the tool to check or install.
|
||||
* @param target the Rust target specifier that should be included in the GitHub
|
||||
* release asset.
|
||||
*
|
||||
* @returns the directory containing the tool binary.
|
||||
*/
|
||||
async function checkOrInstallTool(tool: Tool, target: string): Promise<string> {
|
||||
const { name, versionSpec } = tool;
|
||||
|
||||
// first check if we have previously donwloaded the tool
|
||||
const cache = tc.find(name, versionSpec || "*");
|
||||
if (cache) {
|
||||
core.info(
|
||||
`${name} matching version specifier ${versionSpec} found in cache`
|
||||
);
|
||||
return cache;
|
||||
}
|
||||
|
||||
// find the latest release by querying GitHub API
|
||||
const { version, downloadUrl } = await getRelease(tool, target);
|
||||
|
||||
// download, extract, and cache the tool
|
||||
core.info(`Download from "${downloadUrl}"`);
|
||||
const artifact = await tc.downloadTool(downloadUrl);
|
||||
|
||||
core.info("Extract downloaded archive");
|
||||
const dir = `./${name}-${version}`;
|
||||
|
||||
let extractDir;
|
||||
if (downloadUrl.endsWith(".zip")) {
|
||||
extractDir = await tc.extractZip(artifact, dir);
|
||||
} else {
|
||||
extractDir = await tc.extractTar(artifact, dir);
|
||||
}
|
||||
|
||||
return tc.cacheDir(extractDir, name, version);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
const versionSpec = core.getInput("just-version");
|
||||
const target = getTarget();
|
||||
const cacheDir = await checkOrInstallTool(
|
||||
{
|
||||
owner: "casey",
|
||||
name: "just",
|
||||
versionSpec,
|
||||
},
|
||||
target
|
||||
);
|
||||
core.addPath(cacheDir);
|
||||
} catch (err) {
|
||||
core.setFailed(err.message);
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
@@ -0,0 +1,2 @@
|
||||
test:
|
||||
@echo "Test..."
|
||||
@@ -1,66 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
/* Basic Options */
|
||||
// "incremental": true, /* Enable incremental compilation */
|
||||
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
||||
// "lib": [], /* Specify library files to be included in the compilation. */
|
||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
||||
// "checkJs": true, /* Report errors in .js files. */
|
||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
||||
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
||||
"sourceMap": true, /* Generates corresponding '.map' file. */
|
||||
// "outFile": "./", /* Concatenate and emit output to single file. */
|
||||
"outDir": "./lib", /* Redirect output structure to the directory. */
|
||||
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
||||
// "composite": true, /* Enable project compilation */
|
||||
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
||||
// "removeComments": true, /* Do not emit comments to output. */
|
||||
// "noEmit": true, /* Do not emit outputs. */
|
||||
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
||||
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
||||
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
||||
|
||||
/* Strict Type-Checking Options */
|
||||
"strict": true, /* Enable all strict type-checking options. */
|
||||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
||||
// "strictNullChecks": true, /* Enable strict null checks. */
|
||||
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
||||
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
||||
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
||||
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
||||
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
||||
|
||||
/* Additional Checks */
|
||||
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
||||
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
||||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||
|
||||
/* Module Resolution Options */
|
||||
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
||||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
||||
// "typeRoots": [], /* List of folders to include type definitions from. */
|
||||
// "types": [], /* Type declaration files to be included in compilation. */
|
||||
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
||||
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
||||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
||||
|
||||
/* Source Map Options */
|
||||
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
||||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
||||
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
||||
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
||||
|
||||
/* Experimental Options */
|
||||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
||||
|
||||
/* Advanced Options */
|
||||
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user