Skip to content

Commit 2d08ac6

Browse files
Various build fixes and formatting (#21)
1 parent ef9aca3 commit 2d08ac6

File tree

7 files changed

+4766
-3210
lines changed

7 files changed

+4766
-3210
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ dist/
1111
tsc_output
1212
tsconfig*.tsbuildinfo
1313

14+
# yarn
15+
16+
.yarn/*
17+
!.yarn/releases
18+
!.yarn/patches
19+
!.yarn/plugins
20+
!.yarn/sdks
21+
!.yarn/versions
22+
1423
# env
1524
.DS_Store
1625
.env.local

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"email": "[email protected]",
1414
"url": "https://github.com/sigmacomputing/plugin/issues"
1515
},
16+
"packageManager": "[email protected]",
1617
"files": [
1718
"dist/*"
1819
],
@@ -24,15 +25,13 @@
2425
}
2526
},
2627
"scripts": {
27-
"clean": "rimraf dist tsconfig*.tsbuildinfo",
28-
"build": "yarn clean && yarn tsc",
28+
"build": "yarn tsc --build tsconfig.build.json",
2929
"build:watch": "yarn build --watch",
3030
"format": "prettier --write 'src/**/*.{ts,tsx}' 'jest.config.ts'",
3131
"precommit": "lint-staged",
3232
"prepublish": "yarn build",
3333
"test": "jest --ci",
34-
"test:watch": "yarn test --watch",
35-
"tsc": "ttsc --build tsconfig.build.json"
34+
"test:watch": "yarn test --watch"
3635
},
3736
"peerDependencies": {
3837
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
@@ -49,9 +48,6 @@
4948
"lint-staged": "^13.0.3",
5049
"prettier": "^2.7.1",
5150
"ts-jest": "^27.1.4",
52-
"ts-node": "^10.9.1",
53-
"ttypescript": "^1.5.13",
54-
"typescript": "^4.8.2",
55-
"typescript-transform-paths": "^3.3.1"
51+
"typescript": "^4.8.2"
5652
}
5753
}

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { initialize } from "./client/initialize";
1+
import { initialize } from './client/initialize';
22

3-
export const client = initialize();
3+
export const client = initialize();

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ export * from './types';
22
export * from './react';
33
export * from './client';
44

5-
export {polyfillRequestAnimationFrame} from './utils/polyfillRequestAnimationFrame';
5+
export { polyfillRequestAnimationFrame } from './utils/polyfillRequestAnimationFrame';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* requestAnimationFrame() calls are paused in most browsers when running in background tabs or hidden <iframe>s in order to improve performance and battery life
3-
*
3+
*
44
* @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
55
* @param w Window Object
66
*/
@@ -9,4 +9,4 @@ export function polyfillRequestAnimationFrame(w: Window) {
99
w.requestAnimationFrame = cb => w.setTimeout(cb, 1000 / 60);
1010
w.cancelAnimationFrame = id => w.clearTimeout(id);
1111
}
12-
}
12+
}

0 commit comments

Comments
 (0)