@lsby/ts-format 0.0.1 → 0.0.2
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 +3 -0
- package/dist/cjs/index.cjs +3 -3
- package/package.json +43 -41
package/README.md
ADDED
package/dist/cjs/index.cjs
CHANGED
|
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
23
|
format: () => format
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
26
|
function format(formatString, ...args) {
|
|
27
27
|
let i = 0;
|
|
28
28
|
return formatString.replace(/%[sdjifo]/g, (match) => {
|
package/package.json
CHANGED
|
@@ -1,42 +1,44 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@lsby/ts-format",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"dist"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"check:
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
},
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@lsby/ts-format",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/lsby/ts-format.git"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
"require": "./dist/cjs/index.cjs",
|
|
11
|
+
"import": "./dist/esm/index.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build:all": "npm run build:cjs && npm run build:esm",
|
|
18
|
+
"build:cjs": "tsup src/**/*.ts --format cjs --clean --dts -d dist/cjs",
|
|
19
|
+
"build:esm": "tsup src/**/*.ts --format esm --clean --dts -d dist/esm",
|
|
20
|
+
"check:all": "npm run check:format && npm run check:lint && npm run check:type",
|
|
21
|
+
"check:format": "prettier --write .",
|
|
22
|
+
"check:lint": "eslint . --fix",
|
|
23
|
+
"check:type": "tsc --noEmit",
|
|
24
|
+
"check:type:watch": "tsc --noEmit -w",
|
|
25
|
+
"pub:public": "npm run check:all && npm run test:base && npm run build:all && bumpp && npm publish --access public",
|
|
26
|
+
"test:base": "npm run check:all && vitest run",
|
|
27
|
+
"test:coverage": "npm run check:all && vitest run --coverage && open-cli ./coverage/index.html"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"vitest": "^2.0.2"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
|
34
|
+
"@lsby/eslint-config": "^0.1.0",
|
|
35
|
+
"@types/node": "^20.12.10",
|
|
36
|
+
"@vitest/coverage-v8": "^2.0.2",
|
|
37
|
+
"bumpp": "^9.4.1",
|
|
38
|
+
"open-cli": "^8.0.0",
|
|
39
|
+
"prettier": "3.2.5",
|
|
40
|
+
"prettier-plugin-packagejson": "^2.5.0",
|
|
41
|
+
"tsup": "^8.0.2",
|
|
42
|
+
"typescript": "^5.4.5"
|
|
43
|
+
}
|
|
42
44
|
}
|