diff --git a/package.json b/package.json index e0d2fc3..5f94f3e 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,10 @@ "begin": "src/index.js" }, "main": "src/index.js", + "files": [ + "src", + "client-ids.json" + ], "engines": { "node": ">=16" }, diff --git a/scripts/create-client-ids.js b/scripts/create-client-ids.js index 3ccf967..53861fb 100755 --- a/scripts/create-client-ids.js +++ b/scripts/create-client-ids.js @@ -1,10 +1,13 @@ #! /usr/bin/env node +const process = require('node:process') const { join } = require('node:path') const { writeFileSync } = require('node:fs') -const staging = process.env.BEGIN_CLI_CLIENT_ID_STAGING -const production = process.env.BEGIN_CLI_CLIENT_ID_PRODUCTION +const { + BEGIN_CLI_CLIENT_ID_STAGING: staging, + BEGIN_CLI_CLIENT_ID_PRODUCTION: production, +} = process.env if (!staging || !production) { throw ReferenceError('Missing staging and/or production client ID')