-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inclusion of spectacle package.json for CLI (#1307)
* Fix inclusion of spectacle package.json for CLI * Update GH Action * Add the cp package to test deps.
- Loading branch information
1 parent
7f6b26a
commit a7196d5
Showing
6 changed files
with
220 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'create-spectacle': patch | ||
--- | ||
|
||
Fix inclusion of Spectacle library package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
tmp | ||
spectacle-package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ | |
"description": "Project generator for Spectacle", | ||
"main": "bin/cli.js", | ||
"files": [ | ||
"bin/" | ||
"bin/", | ||
"spectacle-package.json" | ||
], | ||
"bin": "bin/cli.js", | ||
"author": "Formidable Labs <[email protected]>", | ||
|
@@ -26,18 +27,22 @@ | |
"devDependencies": { | ||
"@types/node": "^18.0.3", | ||
"@types/prompts": "^2.0.14", | ||
"shx": "^0.3.4", | ||
"spectacle": "*" | ||
}, | ||
"resolutions": {}, | ||
"scripts": { | ||
"dev": "ts-node src/cli.ts", | ||
"dev": "pnpm copy-spectacle-package && ts-node src/cli.ts", | ||
"build": "wireit", | ||
"types:check": "wireit", | ||
"lint": "wireit", | ||
"lint:fix": "wireit", | ||
"prettier": "wireit", | ||
"prettier:fix": "wireit", | ||
"test": "wireit", | ||
"copy-spectacle-package": "shx cp ../spectacle/package.json ./spectacle-package.json", | ||
"prepack": "pnpm copy-spectacle-package", | ||
"postpack": "shx rm ./spectacle-package.json", | ||
"examples:clean": "rimraf .examples", | ||
"examples:test": "nps jest", | ||
"examples:jsx:clean": "rimraf .examples/jsx", | ||
|
@@ -147,6 +152,7 @@ | |
}, | ||
"test": { | ||
"dependencies": [ | ||
"copy-spectacle-package", | ||
"build" | ||
], | ||
"command": "jest --testMatch=\"<rootDir>/src/*.test.ts\"", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a7196d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
spectacle-docs-website – ./
spectacle-docs-website-git-main-formidable-labs.vercel.app
spectacle-docs-website-formidable-labs.vercel.app
spectacle-website-mu.vercel.app