Skip to content

Commit af2ce58

Browse files
committed
Update deployment and tidy up
1 parent 66d0d4f commit af2ce58

27 files changed

+328
-279
lines changed

package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
11
{
22
"name": "@pelicanplatform/web-client",
3-
"version": "0.0.4",
3+
"version": "1.0.0-alpha.1",
4+
"homepage": "https://pelicanplatform.org",
5+
"repository": {
6+
"type": "git",
7+
"url": "git+https://github.com/PelicanPlatform/web-client.git"
8+
},
49
"description": "Pelican web client",
510
"main": "dist/index.js",
611
"types": "src/types.ts",
712
"scripts": {
813
"test": "jest --coverage --json --outputFile=.github/tests/test-summary.json",
914
"build": "tsc",
10-
"publish": "npm publish --access public"
15+
"prepublish": "npm run build"
16+
},
17+
"exports": {
18+
".": {
19+
"import": "./dist/index.js",
20+
"require": "./dist/index.cjs"
21+
}
1122
},
1223
"files": [
1324
"dist",
14-
"src/index.d.ts"
25+
"README.md",
26+
"package.json"
1527
],
1628
"author": "",
1729
"license": "Apache-2.0",

src/Client.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@ import {
1616
parsePelicanObjectUrl,
1717
fetchFederationConfiguration
1818
} from "./pelican";
19-
import {downloadResponse} from "./download";
2019
import {
2120
generateCodeChallengeFromVerifier,
2221
generateCodeVerifier,
2322
getToken,
2423
getAuthorizationCode
2524
} from "./security";
26-
import {parseOauthState, parseWebDavXmlToJson} from "./util"
27-
import sessionObject, {ProxiedValue} from "./sessionObject";
25+
import {
26+
parseOauthState,
27+
parseWebDavXmlToJson,
28+
sessionObject,
29+
downloadResponse,
30+
ProxiedValue
31+
} from "./util"
2832

2933
export default class Client {
3034

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
export {default as Client} from "./Client";
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)