Skip to content

Commit

Permalink
🔨 Add TS scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
luukdv committed Oct 25, 2020
1 parent a486421 commit 68a8258
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@
"build:browser": "rollup src/index.js -f iife -o dist/color.js -n colorjs --no-esModule -p terser -p \"babel={presets:['@babel/preset-env']}\"",
"build:cjs": "rollup src/index.js -f cjs -o dist/color.cjs.js -p \"babel={presets:['@babel/preset-env']}\"",
"build:esm": "rollup src/index.js -f es -o dist/color.esm.js -p \"babel={presets:['@babel/preset-env']}\"",
"build": "rimraf dist && run-p build:browser build:cjs build:esm",
"build:types": "tsc --emitDeclarationOnly",
"build": "rimraf dist && run-p build:browser build:cjs build:esm build:types",
"format": "prettier --write '**/*.{js,json,ts}'",
"prepublishOnly": "npm run build",
"test:cypress": "cypress open",
"test:server": "http-server -p 9000 ./test",
"test": "run-p test:cypress test:server"
"test": "run-p test:cypress test:server",
"ts": "tsc --noEmit"
},
"dependencies": {},
"devDependencies": {
Expand Down

0 comments on commit 68a8258

Please sign in to comment.