diff --git a/src/commands/build.ts b/src/commands/build.ts index c9b8523..88539f7 100644 --- a/src/commands/build.ts +++ b/src/commands/build.ts @@ -11,7 +11,7 @@ import { pathExists, pathExistsSync } from 'find-up'; import { mkdir, writeFile } from 'fs/promises'; import * as Preprocessor from '../utilities/preprocessor'; import { bold, magentaBright } from 'colorette'; -import { fileURLToPath } from 'url' + type BuildOptions = { /** * Define __VERSION__ diff --git a/src/commands/publish.ts b/src/commands/publish.ts index d29b82c..781c662 100644 --- a/src/commands/publish.ts +++ b/src/commands/publish.ts @@ -14,7 +14,7 @@ export async function publish(commandDir: string | undefined, args: Partial { }; const serialize = (permissions: unknown) => { if(typeof permissions === 'bigint') { - return permissions; + return permissions.toString(); } if(Array.isArray(permissions)) { - return permissions.reduce((acc, cur) => { - return acc | cur; - }, 0) + return permissions + .reduce((acc, cur) => acc | cur, BigInt(0)) + .toString() } return null; }