Adjusted build steps

This commit is contained in:
luke-hagar-sp
2024-02-29 12:07:23 -05:00
parent d0e269affe
commit d7d867d8c9
7 changed files with 45384 additions and 9 deletions

4
.gitignore vendored
View File

@@ -1,3 +1,3 @@
node_modules
.env
lib
.env

View File

@@ -2,4 +2,4 @@ name: "profile-stats"
description: "retrieve github profile stats and save locally to repo for further processing"
runs:
using: "node20"
main: "./build/index.js"
main: "./dist/index.js"

45367
dist/index.js vendored Normal file

File diff suppressed because one or more lines are too long

3
dist/package.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"type": "module"
}

View File

@@ -7,14 +7,14 @@
"@actions/github": "^6.0.0",
"@octokit/action": "^6.0.7",
"@octokit/plugin-paginate-graphql": "^4.0.0",
"@vercel/ncc": "^0.38.1",
"dotenv": "^16.4.5",
"octokit": "^3.1.2",
"typescript": "^5.3.3",
"vite": "^5.1.4"
},
"scripts": {
"dev": "vite build && node ./build/dist/github-profile-stats.js",
"build": "vite build"
"build": "tsc && ncc build lib/index.js"
},
"type": "module",
"devDependencies": {

View File

@@ -1,10 +1,10 @@
{
"compilerOptions": {
"rootDir": "src",
"outDir": "./build",
"outDir": "lib",
"paths": {
"@/*": ["./src/*"],
"@@/*": ["./*"],
"@@/*": ["./*"]
},
"target": "ESNext",
"useDefineForClassFields": true,
@@ -19,8 +19,8 @@
"noUnusedParameters": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true,
"types": ["node"],
"types": ["node"]
},
"include": ["src"],
"exclude": ["**/*.test.ts", "node_modules", "test/**", ".history/**"],
"exclude": ["**/*.test.ts", "node_modules", "test/**", ".history/**"]
}

View File

@@ -485,6 +485,11 @@
dependencies:
undici-types "~5.26.4"
"@vercel/ncc@^0.38.1":
version "0.38.1"
resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.38.1.tgz#13f08738111e1d9e8a22fd6141f3590e54d9a60e"
integrity sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==
aggregate-error@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a"