Skip to content

Commit

Permalink
fix declaration file dist paths
Browse files Browse the repository at this point in the history
  • Loading branch information
51ngul4r1ty committed Feb 3, 2024
1 parent c10e22a commit 9c235e3
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 75 deletions.
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"**/.git": true,
"build": true,
"coverage": true,
"dist": true,
"node_modules": true
},
"search.exclude": {},
"search.exclude": {
"dist": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"coverage-gutters.showGutterCoverage": true,
Expand Down
57 changes: 11 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atoll-mono",
"version": "0.1.1",
"version": "0.66.0",
"description": "Atoll's Monorepo using NPM workspaces",
"main": "index.ts",
"homepage": "https://github.com/51ngul4r1ty/atoll-mono#readme",
Expand All @@ -21,10 +21,14 @@
"build-pkg:rest-fetch": "npm run build -w packages/rest-fetch",
"build-pkg:api-types": "npm run build -w packages/api-types",
"build-pkgs:shared": "npm run build-pkg:api-types && npm run build-pkg:rest-fetch && npm run build-pkg:rich-types && npm run build-pkg:client-sdk && npm run build-pkg:shared",
"build-pkgs:extension": "npm run build-pkgs:client-sdk && npm run build-pkg:extension",
"build-pkgs:client-sdk": "npm run build-pkg:rich-types && npm run build-pkgs:rest-fetch && npm run build-pkg:client-sdk",
"build-pkgs:rest-fetch": "npm run build-pkg:api-types && npm run build-pkg:rest-fetch",
"dist-pkg:extension": "npm run build-pkgs:shared && npm run build-pkg:extension && npm run build-vsix -w packages/vscode-extension",
"check-prereqs-pkg:web-app": "npm run check:prereqs -w packages/web-app",
"docker-pkg:web-app": "npm run build-pkg:web-app && npm run -w packages/web-app build:docker",
"clean-all": "npm run clean-all:node-modules",
"clean-all": "npm run clean-all:node-modules && npm run clean-all:dist",
"clean-all:dist": "npm run clean:dist -ws --if-present",
"clean-all:node-modules": "npm run clean:node-modules -ws --if-present",
"clean:node-modules": "rimraf node_modules",
"package-pkg:extension": "npm run package -w packages/vscode-extension",
Expand Down Expand Up @@ -60,6 +64,6 @@
"devDependencies": {
"prettier": "2.7.1",
"rimraf": "3.0.2",
"typescript": "4.2.4"
"typescript": "4.6.4"
}
}
7 changes: 4 additions & 3 deletions packages/api-types/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@atoll/api-types",
"version": "1.0.0",
"version": "1.1.1",
"description": "Atoll REST API shared types",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"types": "dist/src/types/index.d.ts",
"files": [
"dist"
],
Expand All @@ -18,7 +18,8 @@
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run clean && npm run build && npm run test",
"watch": "rollup -cw --bundleConfigAsCjs",
"clean": "npx --no-install rimraf dist",
"clean": "npm run clean:dist",
"clean:dist": "rimraf dist",
"clean:node-modules": "rimraf node_modules",
"test": "tsc --noEmit --project tsconfig.json"
},
Expand Down
11 changes: 6 additions & 5 deletions packages/client-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atoll/client-sdk",
"version": "1.0.0",
"version": "1.1.1",
"description": "Atoll REST API client SDK",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
Expand All @@ -18,7 +18,8 @@
"build": "rollup -c",
"prepublishOnly": "npm run clean && npm run build && npm run test",
"watch": "rollup -cw",
"clean": "npx --no-install rimraf dist",
"clean": "npm run clean:dist",
"clean:dist": "rimraf dist",
"clean:node-modules": "rimraf node_modules",
"test": "npm run test:tsc && npm run test:unit",
"test:unit": "jest --coverage",
Expand Down Expand Up @@ -51,9 +52,9 @@
"typescript": "4.6.4"
},
"dependencies": {
"@atoll/api-types": "1.0.0",
"@atoll/rest-fetch": "1.1.0",
"@atoll/rich-types": "0.1.1",
"@atoll/api-types": "1.1.1",
"@atoll/rest-fetch": "1.1.1",
"@atoll/rich-types": "1.1.1",
"http-status-codes": "2.2.0"
}
}
1 change: 1 addition & 0 deletions packages/client-sdk/src/atollClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export class AtollClient {
};
private onAuthFailureNotification = async (refreshTokenUri: string): Promise<void> => {
if (this.notificationHandler) {
debugger;
await this.notificationHandler("Re-connecting to Atoll Server...", "info");
}
};
Expand Down
9 changes: 5 additions & 4 deletions packages/rest-fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@atoll/rest-fetch",
"version": "1.1.0",
"version": "1.1.1",
"description": "TypeScript async/await RESTful HTTP client for the browser and node.js",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"types": "dist/packages/rest-fetch/src/index.d.ts",
"files": [
"dist"
],
Expand All @@ -18,7 +18,8 @@
"build": "rollup -c --bundleConfigAsCjs",
"prepublishOnly": "npm run clean && npm run build && npm run test",
"watch": "rollup -cw --bundleConfigAsCjs",
"clean": "npx --no-install rimraf dist",
"clean": "npm run clean:dist",
"clean:dist": "rimraf dist",
"clean:node-modules": "rimraf node_modules",
"test": "npm run test:tsc",
"test:tsc": "tsc --noEmit --project tsconfig.json",
Expand All @@ -34,7 +35,6 @@
"axios": "0.27.2"
},
"devDependencies": {
"@atoll/api-types": "0.6.1",
"@babel/core": "7.17.10",
"@babel/preset-env": "7.17.10",
"@babel/preset-typescript": "7.16.7",
Expand All @@ -44,6 +44,7 @@
"jest": "28.0.3"
},
"dependencies": {
"@atoll/api-types": "1.1.1",
"http-status-codes": "2.2.0"
}
}
1 change: 1 addition & 0 deletions packages/rest-fetch/src/restApiFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export class RestApiFetch<ST = any, FT = string> {
throw this.buildFromCaughtError(errorTyped);
}
private async handleErrorAndRetry<T>(error: any, options: ResourceRequestOptions, apiCall: () => T): Promise<T> {
debugger;
const errorTyped = this.fixAxiosError(error);
if (options.skipRetryOnAuthFailure || errorTyped.status !== 401) {
this.handleError(error);
Expand Down
7 changes: 4 additions & 3 deletions packages/rich-types/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@atoll/rich-types",
"version": "0.1.1",
"version": "1.1.1",
"description": "Atoll consuming code shared types",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"types": "dist/src/types/index.d.ts",
"files": [
"dist"
],
Expand All @@ -18,7 +18,8 @@
"build": "rollup -c",
"prepublishOnly": "npm run clean && npm run build && npm run test",
"watch": "rollup -cw",
"clean": "npx --no-install rimraf dist",
"clean": "npm run clean:dist",
"clean:dist": "rimraf dist",
"clean:node-modules": "rimraf node_modules",
"test": "tsc --noEmit --project tsconfig.json"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atoll/scripts",
"version": "0.1.0",
"version": "1.1.1",
"description": "",
"main": "index.js",
"devDependencies": {},
Expand Down
7 changes: 4 additions & 3 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "@atoll/shared",
"version": "0.65.0",
"version": "0.66.0",
"description": "Atoll shared code that is common to electron desktop client and web app",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"types": "dist/src/index.d.ts",
"files": [
"dist"
],
"sideEffects": false,
"scripts": {
"build": "echo Node Version && node --version && rollup -c",
"clean": "npx --no-install rimraf dist",
"clean": "npm run clean:dist",
"clean:dist": "rimraf dist",
"clean:node-modules": "rimraf node_modules",
"gen:react-svg": "deno run --allow-read --allow-write --unstable ../scripts/build-svg-component/index.ts",
"open:coverage-report": "npx --no-install opener ./coverage/lcov-report/index.html",
Expand Down
6 changes: 3 additions & 3 deletions packages/vscode-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atoll-extension",
"version": "0.4.2",
"version": "0.66.0",
"description": "Use Atoll from within VS Code",
"author": "Kevin Berry",
"repository": {
Expand Down Expand Up @@ -72,8 +72,8 @@
"webpack-cli": "4.9.2"
},
"dependencies": {
"@atoll/client-sdk": "1.0.0",
"@atoll/rich-types": "0.1.1",
"@atoll/client-sdk": "1.1.1",
"@atoll/rich-types": "1.1.1",
"axios": "0.27.2"
},
"license": "ISC",
Expand Down
4 changes: 2 additions & 2 deletions packages/web-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atoll/web-app",
"version": "0.65.0",
"version": "0.66.0",
"description": "Atoll web app",
"scripts": {
"build": "npm run build-only && npm run build-deploy",
Expand Down Expand Up @@ -32,7 +32,7 @@
},
"license": "MIT",
"dependencies": {
"@atoll/shared": "0.64.0",
"@atoll/shared": "0.66.0",
"@flopflip/memory-adapter": "1.6.0",
"@flopflip/react-broadcast": "10.1.11",
"axios": "0.26.1",
Expand Down

0 comments on commit 9c235e3

Please sign in to comment.