@cetusprotocol/deepbook-utils 0.0.0-experimental-20251225165838
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +15 -0
- package/.env +1 -0
- package/CHANGELOG.md +86 -0
- package/LICENSE +201 -0
- package/README.md +202 -0
- package/biome.json +96 -0
- package/dist/index.d.ts +1353 -0
- package/dist/index.js +15 -0
- package/dist/index.mjs +15 -0
- package/jest.config.js +15 -0
- package/package.json +88 -0
- package/tsconfig.tsbuildinfo +2 -0
- package/tsup.config.js +22 -0
- package/version.mjs +28 -0
package/version.mjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Don't sync to github
|
|
2
|
+
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
|
|
5
|
+
const packageJsonPath = './package.json';
|
|
6
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
7
|
+
|
|
8
|
+
const newVersion = `0.0.0-experimental-${getCurrentDateTimeString()}`;
|
|
9
|
+
packageJson.version = newVersion;
|
|
10
|
+
|
|
11
|
+
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf-8');
|
|
12
|
+
|
|
13
|
+
console.log(`Version updated to ${newVersion}`);
|
|
14
|
+
|
|
15
|
+
function getCurrentDateTimeString() {
|
|
16
|
+
const now = new Date();
|
|
17
|
+
|
|
18
|
+
const year = now.getFullYear();
|
|
19
|
+
const month = String(now.getMonth() + 1).padStart(2, '0');
|
|
20
|
+
const day = String(now.getDate()).padStart(2, '0');
|
|
21
|
+
const hours = String(now.getHours()).padStart(2, '0');
|
|
22
|
+
const minutes = String(now.getMinutes()).padStart(2, '0');
|
|
23
|
+
const seconds = String(now.getSeconds()).padStart(2, '0');
|
|
24
|
+
|
|
25
|
+
const dateTimeString = `${year}${month}${day}${hours}${minutes}${seconds}`;
|
|
26
|
+
|
|
27
|
+
return dateTimeString;
|
|
28
|
+
}
|