Skip to content

Commit

Permalink
Merge pull request #77 from mayajs/fix/build
Browse files Browse the repository at this point in the history
Fix build
  • Loading branch information
mackignacio authored May 16, 2022
2 parents 5ec8b5b + ad34446 commit c27ca3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"window.zoomLevel": 0,
"vsicons.projectDetection.autoReload": true,
"workbench.colorCustomizations": {},
"conventionalCommits.scopes": ["config", "settings", "actions", "assets", "router"]
"conventionalCommits.scopes": ["config", "settings", "actions", "assets", "router", " ", "build", "scripts"]
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"files": [
"LICENSE",
"README.md",
"lib"
"decorators",
"modules",
"index.js",
"**.d.ts"
],
"scripts": {
"test": "jest",
Expand Down
6 changes: 4 additions & 2 deletions scripts/clean-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ fs.writeFile(TEMP_PATH, JSON.stringify(packageData, null, 2), function (err) {
const removableProps = ["devDependencies"];

// Remove the specified properties from `package.json`.
removableProps.forEach((prop) => delete packageData[prop]);
removableProps.forEach(prop => delete packageData[prop]);

// Define new scripts
const scripts = {
clean: "rimraf interface && rimraf index.js && rimraf index.d.ts && rimraf utils && rimraf router && rimraf lib",
"clean:folders": "rimraf decorators && rimraf modules",
"clean:files": "rimraf index.js && rimraf index.d.ts",
clean: "npm run clean:files && npm run clean:folders",
postpack: "npm run clean && node ./scripts/restore-package.js",
};

Expand Down

0 comments on commit c27ca3f

Please sign in to comment.