Skip to content

Commit d7f28cb

Browse files
authored
Merge pull request #378 from lo1tuma/lo1tuma-patch-1
Include typescript declaration files in npm package
2 parents 6c298ac + 935c2e0 commit d7f28cb

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

benchmarks/runtime.bench.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('runtime', function () {
9696
});
9797

9898
it('should not consume more memory as the defined budget to lint many files with the recommended config', function () {
99-
const budget = 4_500_000;
99+
const budget = 5_500_000;
100100

101101
const { medianMemory } = runSyncBenchmark(() => {
102102
lintManyFilesWithAllRecommendedRules({ numberOfFiles: 350 });

benchmarks/startup.bench.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('startup / require time', function () {
2020
});
2121

2222
it('should not consume more memory as the defined budget', async function () {
23-
const budget = 350_000;
23+
const budget = 450_000;
2424

2525
const { medianMemory } = await runAsyncBenchmark(async () => {
2626
await importFresh('../source/plugin.js');

packtory.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ export async function buildConfig() {
3737
description: packageJson.description,
3838
keywords: packageJson.keywords
3939
},
40-
entryPoints: [{ js: 'plugin.js' }],
40+
entryPoints: [
41+
{
42+
js: 'plugin.js',
43+
declarationFile: 'plugin.d.ts'
44+
}
45+
],
4146
additionalFiles: [
4247
{
4348
sourceFilePath: path.join(projectFolder, 'README.md'),

0 commit comments

Comments
 (0)