@atproto/dev-env 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/build.js +35 -25
- package/dist/bin.js +0 -0
- package/package.json +7 -3
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +1 -0
- package/update-pkg.js +14 -0
- package/dist/cli.js +0 -250777
- package/dist/cli.js.map +0 -7
- package/dist/src/bin.d.ts +0 -1
- package/dist/src/bsky.d.ts +0 -14
- package/dist/src/cli.d.ts +0 -1
- package/dist/src/env.d.ts +0 -2
- package/dist/src/feed-gen.d.ts +0 -12
- package/dist/src/index.d.ts +0 -7
- package/dist/src/mock/data.d.ts +0 -2
- package/dist/src/mock/img/blur-hash-avatar-b64.d.ts +0 -2
- package/dist/src/mock/img/labeled-img-b64.d.ts +0 -2
- package/dist/src/mock/index.d.ts +0 -2
- package/dist/src/mock/labeled-img-b64.d.ts +0 -2
- package/dist/src/network-no-appview.d.ts +0 -14
- package/dist/src/network.d.ts +0 -24
- package/dist/src/pds.d.ts +0 -17
- package/dist/src/plc.d.ts +0 -13
- package/dist/src/test-env.d.ts +0 -53
- package/dist/src/types.d.ts +0 -24
- package/dist/src/util.d.ts +0 -3
- package/dist/tsconfig.build.tsbuildinfo +0 -1
package/tsconfig.json
CHANGED
package/update-pkg.js
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
const pkgJson = require('@npmcli/package-json')
|
2
|
+
|
3
|
+
if (process.argv.includes('--update-main-to-dist')) {
|
4
|
+
return pkgJson
|
5
|
+
.load(__dirname)
|
6
|
+
.then((pkg) => pkg.update({ main: 'dist/index.js' }))
|
7
|
+
.then((pkg) => pkg.save())
|
8
|
+
}
|
9
|
+
if (process.argv.includes('--update-main-to-src')) {
|
10
|
+
return pkgJson
|
11
|
+
.load(__dirname)
|
12
|
+
.then((pkg) => pkg.update({ main: 'src/index.ts' }))
|
13
|
+
.then((pkg) => pkg.save())
|
14
|
+
}
|