1
1
mirror of https://github.com/primer/css.git synced 2024-08-17 12:10:33 +03:00

create pretest script

This commit is contained in:
Jon Rohan 2021-03-31 22:40:51 -07:00
parent ddeb5b52d3
commit 2e9f7c4ed6
No known key found for this signature in database
GPG Key ID: B0BBE304A9A0AECB
4 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ node_modules/
public/
searchIndex.js
package-lock.json
tmp

View File

@ -13,3 +13,4 @@ pages/
script/
# we ignore this because everything in src/ is copied out in script/prepublish
src/
tmp/

View File

@ -29,7 +29,7 @@
"dev": "cd docs && npm install && npm run develop",
"start-storybook": "start-storybook -p 8001",
"build-storybook": "build-storybook -o .storybuild",
"pretest": "yarn dist && npm i --no-save @primer/css",
"pretest": "yarn dist && script/pretest",
"test": "jest",
"test-deprecations": "script/test-deprecations.js",
"release": "changeset publish"

7
script/pretest Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
mkdir -p tmp
cd tmp
echo "{\"package\":\"tmp\",\"version\":\"0.0.0\"}" > package.json
yarn add @primer/css