diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ebef8e..5647bf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,8 @@ jobs: - name: Publish to npm run: | npm config set //registry.npmjs.org/:_authToken '${NPM_TOKEN}' + [[ "$GITHUB_REF_NAME" =~ - ]] && npm config set tag=next + npm pkg set version="$GITHUB_REF_NAME" npm publish --ignore-scripts env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/src/context.ts b/src/context.ts index 02cef58..598cfd0 100644 --- a/src/context.ts +++ b/src/context.ts @@ -1,14 +1,16 @@ -import path from "node:path"; +import * as path from "node:path"; import { type Config, parse } from "./config.ts"; import { Project, ts } from "./deps.deno.ts"; const compilerOptions: ts.CompilerOptions = { + // footguns removeComments: false, + // Deno defaults strict: true, useDefineForClassFields: true, }; -interface Options { +export interface Options { readonly tsConfigFilePath?: string; readonly compilerOptions?: ts.CompilerOptions; readonly skipAddingFilesFromTsConfig?: boolean;