Skip to content

Commit

Permalink
Merge branch 'master' into fix/typescript-environment-overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarber authored Dec 20, 2024
2 parents d0c60f1 + d4587a5 commit b769c79
Show file tree
Hide file tree
Showing 15 changed files with 6,041 additions and 17,371 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

52 changes: 0 additions & 52 deletions .eslintrc

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20.x'
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run lint:ci
- name: Test
run: npm run test
run: npm run test
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@space48'
- name: Install
Expand All @@ -27,4 +27,4 @@ jobs:
- run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- run: npm publish .
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased](https://github.com/Space48/cloud-seed/compare/v3.0.0...HEAD)

### Breaking changes

- The package no longer supports deprecated Node.js engine versions. Upgrade your project to Node.js v20 or later.
- Esbuild, which is used to build and bundle the source code for functions, has been upgraded through several breaking versions. Ensure you complete full regression testing of your functions after upgrading.

### Changed

- Updated package dependencies
- Enhanced type safety for environment-specific configurations


Expand Down
4 changes: 2 additions & 2 deletions bin/entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import arg from "arg";

export type cliCommand = (argv?: string[]) => void;
const commands: { [command: string]: () => Promise<cliCommand> } = {
build: async () => await import("../cli/build").then(i => i.cmdBuild),
list: async () => await import("../cli/list").then(i => i.cmdList),
build: async () => await import("../cli/build.js").then(i => i.cmdBuild),
list: async () => await import("../cli/list.js").then(i => i.cmdList),
};

const args = arg(
Expand Down
35 changes: 35 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import typescriptPlugin from "typescript-eslint";
import nodePlugin from "eslint-plugin-n";
import prettierRecommendedConfig from "eslint-plugin-prettier/recommended";

export default typescriptPlugin.config(
{
ignores: ["dist/", "scripts/", ".gen/"],
},
nodePlugin.configs["flat/recommended"],
...typescriptPlugin.configs.recommended,
prettierRecommendedConfig,
{
settings: {
n: {
tryExtensions: [".js", "/index.js", ".ts", "/index.ts"],
},
},
rules: {
"prefer-const": "error",
"n/hashbang": "off",
"n/no-process-exit": "off",
"n/no-unsupported-features/es-builtins": "error",
"n/no-unsupported-features/es-syntax": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-inferrable-types": [
"warn",
{
ignoreParameters: true,
},
],
"@typescript-eslint/no-unused-vars": "warn",
"prettier/prettier": "warn",
},
},
);
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import('jest').Config} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
Expand Down
Loading

0 comments on commit b769c79

Please sign in to comment.