refactor: Move everything into a src/ dir

This commit is contained in:
Edmund Miller 2022-11-12 22:16:53 -06:00 committed by Thomas A. Christensen II
parent 0401be4ed7
commit c976e6b883
5 changed files with 13 additions and 3 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
dist/** -diff linguist-generated=true

4
.gitignore vendored
View file

@ -128,3 +128,7 @@ dist
.yarn/build-state.yml .yarn/build-state.yml
.yarn/install-state.gz .yarn/install-state.gz
.pnp.* .pnp.*
# Ignore built ts files
__tests__/runner/*
lib/**/*

View file

@ -1,14 +1,16 @@
{ {
"name": "install-nextflow-action", "name": "install-nextflow-action",
"version": "1.2.0", "version": "1.2.0",
"main": "dist/index.js",
"description": "An action to install Nextflow into a GitHub Actions workflow and make it available for subsequent steps.", "description": "An action to install Nextflow into a GitHub Actions workflow and make it available for subsequent steps.",
"main": "lib/main.js",
"scripts": { "scripts": {
"build": "tsc",
"format": "prettier --write '**/*.ts'", "format": "prettier --write '**/*.ts'",
"format-check": "prettier --check '**/*.ts'", "format-check": "prettier --check '**/*.ts'",
"lint": "eslint src/**/*.ts", "lint": "eslint src/**/*.ts",
"package": "ncc build --source-map --license LICENSE",
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "ncc build index.ts --license LICENSE" "all": "npm run build && npm run format && npm run lint && npm run package && npm test"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View file

@ -3,8 +3,11 @@
"compilerOptions": { "compilerOptions": {
"target": "es6", "target": "es6",
"module": "commonjs", "module": "commonjs",
"outDir": "./lib",
"rootDir": "./src",
"strict": true, "strict": true,
"noImplicitAny": false, "noImplicitAny": false,
"esModuleInterop": true "esModuleInterop": true
} },
"exclude": ["node_modules", "**/*.test.ts"]
} }