Skip to content

Commit 3b0d096

Browse files
authored
Bump packages and build test directory (#7)
* Bump packages and build test directory * Add rimraf to clean dist and bump package * Update bun lock files
1 parent a8c49b1 commit 3b0d096

File tree

11 files changed

+301
-100
lines changed

11 files changed

+301
-100
lines changed

bun.lockb

45.8 KB
Binary file not shown.

package.json

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dimescheduler",
33
"description": "The Dime.Scheduler SDK",
4-
"version": "0.3.0",
4+
"version": "0.3.1",
55
"main": "./dist/index.ts",
66
"types": "./dist/index.d.ts",
77
"module": "./dist/esm/index.js",
@@ -32,23 +32,24 @@
3232
"power-apps"
3333
],
3434
"scripts": {
35-
"build": "tsc",
36-
"clean": "tsc --build --clean",
35+
"build": "tsc --p tsconfig.json",
36+
"clean": "rimraf dist",
3737
"pub": "yarn clean && yarn build && yarn publish",
38-
"test": "ts-mocha test/**/*.ts --timeout 10000"
38+
"test": "tsc --p ./test/tsconfig.json && ts-mocha test/**/*.ts --timeout 10000"
3939
},
4040
"dependencies": {
41-
"axios": "^0.27.2",
41+
"axios": "^1.6.8",
4242
"reflect-metadata": "^0.2.2"
4343
},
4444
"devDependencies": {
45-
"@tsconfig/recommended": "^1.0.1",
46-
"@types/mocha": "^9.1.1",
47-
"@types/node": "^18.6.3",
48-
"mocha": "^10.0.0",
49-
"random-words": "^1.2.0",
45+
"@tsconfig/recommended": "^1.0.6",
46+
"@types/mocha": "^10.0.6",
47+
"@types/node": "^20.12.7",
48+
"mocha": "^10.4.0",
49+
"random-words": "^2.0.1",
50+
"rimraf": "^5.0.5",
5051
"ts-mocha": "^10.0.0",
51-
"ts-node": "^10.9.1",
52-
"typescript": "^4.7.4"
52+
"ts-node": "^10.9.2",
53+
"typescript": "^5.4.5"
5354
}
54-
}
55+
}

samples/pingpong/bun.lockb

377 Bytes
Binary file not shown.

samples/pingpong/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
},
1515
"dependencies": {
1616
"commander": "^12.0.0",
17-
"dimescheduler": "^0.3.0"
17+
"dimescheduler": "^0.3.1"
1818
}
1919
}
361 Bytes
Binary file not shown.

samples/update-resource-location/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13-
"dimescheduler": "^0.3.0",
13+
"dimescheduler": "^0.3.1",
1414
"mapbox-gl": "^3.3.0",
1515
"react": "^18.2.0",
1616
"react-dom": "^18.2.0",

test/appointment/assignment.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import assert from 'assert';
22
import DimeSchedulerClient, { Environment } from '../../dist';
3-
import { Category, TimeMarker, Appointment, Pin, Job, Task, ResourceGpsTracking, FilterGroup, FilterValue } from '../../dist/models';
4-
import randomWords from 'random-words';
3+
import { Appointment } from '../../dist/models';
54

65
import { apiKey, resourceNo } from "../testvars";
76

test/category.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'assert';
22
import DimeSchedulerClient, { Environment } from '../dist';
3-
import { Category, TimeMarker, Pin } from '../dist/models';
4-
import randomWords from 'random-words';
3+
import { Category } from '../dist/models';
4+
import { generate } from "random-words";
55

66
import { apiKey } from "./testvars";
77

@@ -11,7 +11,7 @@ describe('Category', function () {
1111
const category = new Category();
1212
category.color = '#' + (Math.random() * 0xFFFFFF << 0).toString(16);
1313

14-
const word = randomWords({
14+
const word = generate({
1515
exactly: 1, wordsPerString: 2, formatter: (word, index) => {
1616
return index === 0 ? word.slice(0, 1).toUpperCase().concat(word.slice(1)) : word;
1717
}

test/pin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'assert';
22
import DimeSchedulerClient, { Environment } from '../dist';
33
import { Category, TimeMarker, Pin } from '../dist/models';
4-
import randomWords from 'random-words';
4+
import { generate } from "random-words";
55

66
import { apiKey } from "./testvars";
77

@@ -11,7 +11,7 @@ describe('Pin', function () {
1111
const pin = new Pin();
1212
pin.color = '#' + (Math.random() * 0xFFFFFF << 0).toString(16);
1313

14-
const word = randomWords({
14+
const word = generate({
1515
exactly: 1, wordsPerString: 2, formatter: (word, index) => {
1616
return index === 0 ? word.slice(0, 1).toUpperCase().concat(word.slice(1)) : word;
1717
}

test/tsconfig.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": "@tsconfig/recommended/tsconfig.json",
3+
"compilerOptions": {
4+
"module": "esnext",
5+
"lib": [
6+
"dom",
7+
"esnext"
8+
],
9+
"declaration": false,
10+
"sourceMap": true,
11+
"rootDir": "./",
12+
"noEmit": true,
13+
"strict": false,
14+
"noImplicitReturns": true,
15+
"noFallthroughCasesInSwitch": true,
16+
"moduleResolution": "node",
17+
"esModuleInterop": true,
18+
"skipLibCheck": true,
19+
"forceConsistentCasingInFileNames": true,
20+
"experimentalDecorators": true
21+
}
22+
}

0 commit comments

Comments
 (0)