diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 24b0858..8f07b73 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -117,9 +117,8 @@ jobs: openapi-url: https://docs.reveng.ai/openapi.json config-file: config.yml template-dir: templates - # For the artifact version drop the `v` prefix as it's not usually used in NPM versions command-args: > - --additional-properties=artifactVersion=${{ steps.version_check.outputs.openapi_version_npm }} + --additional-properties=npmVersion=${{ steps.version_check.outputs.openapi_version_npm }} - name: Check for changes if: steps.version_check.outputs.should_generate == 'true' diff --git a/templates/package.mustache b/templates/package.mustache index 15a0240..bf17184 100644 --- a/templates/package.mustache +++ b/templates/package.mustache @@ -24,13 +24,14 @@ {{/supportsES6}} "exports": { ".": { + "types": "./dist/index.d.ts", {{#supportsES6}} "import": "./dist/index.js", {{/supportsES6}} {{^supportsES6}} "require": "./dist/index.js", {{/supportsES6}} - "types": "./dist/index.d.js" + "default": "./dist/index.js" } }, "files": [