Skip to content

Commit cc7f984

Browse files
committed
Add TS build script
1 parent af74dc9 commit cc7f984

File tree

5 files changed

+202
-171
lines changed

5 files changed

+202
-171
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"type": "module",
55
"description": "Parser for robots.txt",
66
"scripts": {
7+
"build": "tsc",
78
"format": "prettier -w .",
89
"test": "vitest"
910
},

src/parser.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { parse } from "./parser";
2+
import { parse } from "./parser.js";
33

44
describe(parse, () => {
55
it("should parse empty files", () => {

src/parser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Token, TokenType, generateTokens } from "./tokenizer";
1+
import { Token, TokenType, generateTokens } from "./tokenizer.js";
22

33
type RobotsTxt = {
44
type: "RobotsTxt";

0 commit comments

Comments
 (0)