Skip to content

Commit

Permalink
don't publish all the things to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeseda committed Jun 25, 2024
1 parent b8089f2 commit e1648cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"begin": "src/index.js"
},
"main": "src/index.js",
"files": [
"src",
"client-ids.json"
],
"engines": {
"node": ">=16"
},
Expand Down
7 changes: 5 additions & 2 deletions scripts/create-client-ids.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit e1648cb

Please sign in to comment.