Skip to content

Commit 917f7d7

Browse files
committed
Use tabs for indent
1 parent 3724cb5 commit 917f7d7

9 files changed

+276
-275
lines changed

.editorconfig

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
root = true
55

66
[*]
7-
indent_style = space
7+
indent_style = tab
88
indent_size = 2
99
end_of_line = lf
1010
charset = utf-8
1111
trim_trailing_whitespace = true
1212
insert_final_newline = true
13+
14+
[*.{yaml,yml}]
15+
indent_style = space

babel.config.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"plugins": [
3-
[
4-
"babel-plugin-replace-import-extension",
5-
{
6-
"extMapping": { ".js": ".cjs" }
7-
}
8-
],
9-
[
10-
"@babel/plugin-transform-modules-commonjs",
11-
{
12-
"importInterop": "none",
13-
"strict": true
14-
}
15-
]
16-
]
2+
"plugins": [
3+
[
4+
"babel-plugin-replace-import-extension",
5+
{
6+
"extMapping": { ".js": ".cjs" }
7+
}
8+
],
9+
[
10+
"@babel/plugin-transform-modules-commonjs",
11+
{
12+
"importInterop": "none",
13+
"strict": true
14+
}
15+
]
16+
]
1717
}

package.json

+53-53
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
{
2-
"name": "vremel",
3-
"version": "0.1.0",
4-
"description": "JavaScript date utility library for Temporal",
5-
"type": "module",
6-
"exports": {
7-
".": {
8-
"import": "./dist/esm/index.js",
9-
"require": "./dist/cjs/index.cjs",
10-
"types": "./dist/esm/index.d.ts"
11-
}
12-
},
13-
"sideEffects": false,
14-
"engines": {
15-
"node": ">=18"
16-
},
17-
"files": [
18-
"dist"
19-
],
20-
"scripts": {
21-
"build": "rimraf dist && tsc -p tsconfig.build.json && babel dist/esm -d dist/cjs --out-file-extension .cjs",
22-
"test": "vitest",
23-
"typecheck": "tsc",
24-
"repl": "vite-node script/repl.ts"
25-
},
26-
"homepage": "https://github.com/fabon-f/vremel#readme",
27-
"bugs": {
28-
"url": "https://github.com/fabon-f/vremel/issues"
29-
},
30-
"repository": {
31-
"type": "git",
32-
"url": "https://github.com/fabon-f/vremel.git"
33-
},
34-
"keywords": [
35-
"Temporal"
36-
],
37-
"author": "fabon <[email protected]> (https://www.fabon.info/)",
38-
"license": "MIT",
39-
"devDependencies": {
40-
"@babel/cli": "^7.23.4",
41-
"@babel/core": "^7.23.7",
42-
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
43-
"@js-temporal/polyfill": "^0.4.4",
44-
"@tsconfig/strictest": "^2.0.2",
45-
"@types/node": "^20.11.6",
46-
"babel-plugin-replace-import-extension": "^1.1.4",
47-
"consola": "^3.2.3",
48-
"prettier": "3.2.5",
49-
"rimraf": "^5.0.5",
50-
"temporal-polyfill": "^0.2.0",
51-
"typescript": "^5.3.3",
52-
"vite-node": "^1.2.1",
53-
"vitest": "^1.2.1"
54-
}
2+
"name": "vremel",
3+
"version": "0.1.0",
4+
"description": "JavaScript date utility library for Temporal",
5+
"type": "module",
6+
"exports": {
7+
".": {
8+
"import": "./dist/esm/index.js",
9+
"require": "./dist/cjs/index.cjs",
10+
"types": "./dist/esm/index.d.ts"
11+
}
12+
},
13+
"sideEffects": false,
14+
"engines": {
15+
"node": ">=18"
16+
},
17+
"files": [
18+
"dist"
19+
],
20+
"scripts": {
21+
"build": "rimraf dist && tsc -p tsconfig.build.json && babel dist/esm -d dist/cjs --out-file-extension .cjs",
22+
"test": "vitest",
23+
"typecheck": "tsc",
24+
"repl": "vite-node script/repl.ts"
25+
},
26+
"homepage": "https://github.com/fabon-f/vremel#readme",
27+
"bugs": {
28+
"url": "https://github.com/fabon-f/vremel/issues"
29+
},
30+
"repository": {
31+
"type": "git",
32+
"url": "https://github.com/fabon-f/vremel.git"
33+
},
34+
"keywords": [
35+
"Temporal"
36+
],
37+
"author": "fabon <[email protected]> (https://www.fabon.info/)",
38+
"license": "MIT",
39+
"devDependencies": {
40+
"@babel/cli": "^7.23.4",
41+
"@babel/core": "^7.23.7",
42+
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
43+
"@js-temporal/polyfill": "^0.4.4",
44+
"@tsconfig/strictest": "^2.0.2",
45+
"@types/node": "^20.11.6",
46+
"babel-plugin-replace-import-extension": "^1.1.4",
47+
"consola": "^3.2.3",
48+
"prettier": "3.2.5",
49+
"rimraf": "^5.0.5",
50+
"temporal-polyfill": "^0.2.0",
51+
"typescript": "^5.3.3",
52+
"vite-node": "^1.2.1",
53+
"vitest": "^1.2.1"
54+
}
5555
}

script/repl.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { consola } from "consola";
33
import * as vremel from "../src/index.js";
44

55
const choice = await consola.prompt("Select polyfill", {
6-
type: "select",
7-
options: ["@js-temporal/polyfill", "temporal-polyfill"],
6+
type: "select",
7+
options: ["@js-temporal/polyfill", "temporal-polyfill"],
88
});
99

1010
const { Temporal } = await import(choice);

0 commit comments

Comments
 (0)