@atproto/api
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -13,2 +13,8 @@ const pkgJson = require('@npmcli/package-json') | ||
} | ||
if (process.argv.includes('--update-main-to-src')) { | ||
return pkgJson | ||
.load(__dirname) | ||
.then((pkg) => pkg.update({ main: 'src/index.ts' })) | ||
.then((pkg) => pkg.save()) | ||
} | ||
@@ -15,0 +21,0 @@ require('esbuild').build({ |
{ | ||
"name": "@atproto/api", | ||
"version": "0.0.1", | ||
"main": "src/index.ts", | ||
"version": "0.0.2", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
@@ -10,2 +10,5 @@ "codegen": "lex gen-api ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*", | ||
"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", | ||
"postpublish": "npm run update-main-to-src", | ||
"test": "jest" | ||
@@ -12,0 +15,0 @@ }, |
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist", // Your outDir, | ||
@@ -5,0 +6,0 @@ "emitDeclarationOnly": true |
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
940316
78
15146