@atproto/api
Advanced tools
Comparing version 0.0.2 to 0.0.3
14
build.js
@@ -1,2 +0,1 @@ | ||
const pkgJson = require('@npmcli/package-json') | ||
const { nodeExternalsPlugin } = require('esbuild-node-externals') | ||
@@ -7,15 +6,2 @@ | ||
if (process.argv.includes('--update-main-to-dist')) { | ||
return pkgJson | ||
.load(__dirname) | ||
.then((pkg) => pkg.update({ main: 'dist/index.js' })) | ||
.then((pkg) => pkg.save()) | ||
} | ||
if (process.argv.includes('--update-main-to-src')) { | ||
return pkgJson | ||
.load(__dirname) | ||
.then((pkg) => pkg.update({ main: 'src/index.ts' })) | ||
.then((pkg) => pkg.save()) | ||
} | ||
require('esbuild').build({ | ||
@@ -22,0 +8,0 @@ logLevel: 'info', |
{ | ||
"name": "@atproto/api", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "dist/index.js", | ||
@@ -9,5 +9,5 @@ "scripts": { | ||
"postbuild": "tsc --build tsconfig.build.json", | ||
"update-main-to-dist": "node ./build.js --update-main-to-dist", | ||
"update-main-to-src": "node ./build.js --update-main-to-src", | ||
"prepublish": "npm run update-main-to-dist && npm run build", | ||
"update-main-to-dist": "node ./update-pkg.js --update-main-to-dist", | ||
"update-main-to-src": "node ./update-pkg.js --update-main-to-src", | ||
"prepublish": "npm run update-main-to-dist", | ||
"postpublish": "npm run update-main-to-src", | ||
@@ -14,0 +14,0 @@ "test": "jest" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1091295
145
19916