@citruslime/utils 1.1.1 → 1.2.0-beta.0

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/README.md CHANGED
@@ -16,3 +16,7 @@ A TypeScript package containing utilities for any JavaScript or TypeScript proje
16
16
  or
17
17
 
18
18
  `yarn add @citruslime/utils`
19
+
20
+ or
21
+
22
+ `pnpm add @citruslime/utils`
@@ -40,7 +40,7 @@ String.prototype.replacePlaceholders = function(...t) {
40
40
  return p(this, ...t);
41
41
  };
42
42
  String.prototype.toDateFromTime = function() {
43
- return new Date(`${new Date().toISOString().substr(0, 11)}${this}`);
43
+ return /* @__PURE__ */ new Date(`${(/* @__PURE__ */ new Date()).toISOString().substr(0, 11)}${this}`);
44
44
  };
45
45
  function g(t, n) {
46
46
  if (t.length === 0)
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citruslime/utils",
3
- "version": "1.1.1",
3
+ "version": "1.2.0-beta.0",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Citrus-Lime Ltd",
@@ -23,10 +23,13 @@
23
23
  "exports": {
24
24
  ".": {
25
25
  "import": "./dist/citrus-lime-utils.es.js",
26
- "require": "./dist/citrus-lime-utils.umd.js"
26
+ "require": "./dist/citrus-lime-utils.umd.js",
27
+ "types": "./dist/main.d.ts"
27
28
  }
28
29
  },
29
30
  "scripts": {
30
- "build": "vite build && copyfiles -u 2 \"dist/src/**/*\" dist && del-cli dist/src"
31
+ "build": "run-p build-source build-types",
32
+ "build-source": "vite build",
33
+ "build-types": "vue-tsc --declaration --emitDeclarationOnly --declarationDir ./dist --project ./tsconfig.app.json --composite false"
31
34
  }
32
35
  }