Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"build:stats": "node ./resources/dist-stats.mjs",
"website:build": "cd website && next build && next-sitemap",
"website:dev": "cd website && next dev",
"check-build-output": "node ./resources/check-build-output.cjs",
"check-build-output": "node ./resources/check-build-output.mjs",
"check-git-clean": "./resources/check-git-clean.sh",
"benchmark": "node ./resources/benchmark.js",
"publish": "echo 'ONLY PUBLISH VIA CI'; exit 1;"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
const fs = require('node:fs');
import fs from 'node:fs';
import path from 'node:path';

const packageJsonContent = JSON.parse(fs.readFileSync('package.json', 'utf8'));

// remove "dist/" prefix from the file names
const distPrefix = 'dist/';
const removeDistPrefix = (file) => file.replace(distPrefix, '');
const distPrefix = 'dist';
const removeDistPrefix = (file) => path.basename(file);

const expectedFiles = [
removeDistPrefix(packageJsonContent.main),
Expand Down