Skip to content

Commit

Permalink
Fix #3288: Add typescript index.d.ts to main library (#3308)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Sep 12, 2022
1 parent d54a6dd commit e2ce71f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"unpkg": "primereact.all.min.js",
"jsdelivr": "primereact.all.min.js",
"main": "primereact.all.min.js",
"module": "primereact.all.esm.min.js",
"types": "primereact.d.ts",
"module": "primereact.all.esm.min.js",
"types": "index.d.ts",
"peerDependencies": {
"@types/react": "^17.0.0 || ^18.0.0",
"react": "^17.0.0 || ^18.0.0",
Expand Down
5 changes: 0 additions & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,6 @@ function addComponent() {
});
}

function addTypeScript() {
fs.copyFileSync(path.resolve(process.env.INPUT_DIR + 'index.d.ts'), path.resolve(process.env.OUTPUT_DIR + 'primereact.d.ts'));
}

function addPrimeReact() {
const input = process.env.INPUT_DIR + 'primereact.all.js';
const output = process.env.OUTPUT_DIR + 'primereact.all';
Expand All @@ -229,7 +225,6 @@ function addPrimeReact() {
}

addComponent();
addTypeScript();
addPrimeReact();
addCore();

Expand Down

0 comments on commit e2ce71f

Please sign in to comment.