Skip to content

Commit 35348c7

Browse files
committed
[cr] fix build commands
1 parent dc2f462 commit 35348c7

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

package-lock.json

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tsqtsq",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"main": "dist/index.js",
55
"license": "AGPL-3.0-only",
66
"description": "A reusable and composable query library for Prometheus",
@@ -22,12 +22,12 @@
2222
"esbuild": "^0.23.0",
2323
"jest": "^29.7.0",
2424
"ts-jest": "^29.2.4",
25-
"typescript": "^5.5.4"
25+
"typescript": "^5.7.2"
2626
},
2727
"scripts": {
2828
"test": "jest",
2929
"test:watch": "jest --watch",
30-
"build": "esbuild src/index.js --bundle --platform=node --outfile=dist/index.js",
30+
"build": "tsc",
3131
"publish": "npm build && npm publish"
3232
}
3333
}

tsconfig.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
/* Language and Environment */
1414
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15-
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
15+
"lib": ["es2017", "es7", "es6", "dom"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1616
// "jsx": "preserve", /* Specify what JSX code is generated. */
1717
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
1818
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
@@ -25,7 +25,7 @@
2525
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
2626

2727
/* Modules */
28-
"module": "commonjs", /* Specify what module code is generated. */
28+
"module": "amd", /* Specify what module code is generated. */
2929
// "rootDir": "./", /* Specify the root folder within your source files. */
3030
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
3131
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
@@ -50,12 +50,12 @@
5050

5151
/* Emit */
5252
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
53-
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
53+
"declarationMap": true, /* Create sourcemaps for d.ts files. */
5454
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
5555
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
5656
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
57-
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58-
// "outDir": "./", /* Specify an output folder for all emitted files. */
57+
"outFile": "dist/index.js", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58+
"outDir": "./dist", /* Specify an output folder for all emitted files. */
5959
// "removeComments": true, /* Disable emitting comments. */
6060
// "noEmit": true, /* Disable emitting files from a compilation. */
6161
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */

0 commit comments

Comments
 (0)