|
19 | 19 | "./LmcCookieConsentManager.cjs": "./LmcCookieConsentManager.cjs", |
20 | 20 | "./LmcCookieConsentManager.mjs": "./LmcCookieConsentManager.mjs" |
21 | 21 | }, |
| 22 | + "types": "./LmcCookieConsentManager.d.ts", |
22 | 23 | "repository": { |
23 | 24 | "type": "git", |
24 | 25 | "url": "https://github.com/lmc-eu/cookie-consent-manager.git" |
|
36 | 37 | "css:minify": "cleancss --format breaksWith=lf --source-map-inline-sources --batch --batch-suffix \".min\" \"dist/*.css\" \"!dist/*.min.css\"", |
37 | 38 | "css:lint": "stylelint --config .stylelintrc \"src/**/*.scss\" \"examples/assets/*.css\" --cache --cache-location .cache/.stylelintcache", |
38 | 39 | "prejs": "yarn js:lint", |
39 | | - "js": "yarn js:compile", |
| 40 | + "js": "npm-run-all --serial js:compile js:compile:types", |
40 | 41 | "js:lint": "eslint ./", |
41 | 42 | "js:lint:fix": "yarn js:lint --fix", |
42 | 43 | "js:compile": "node scripts/build.js", |
| 44 | + "js:compile:types": "tsc -p ./tsconfig.build.json --outDir ./dist", |
43 | 45 | "lint": "npm-run-all --serial js:lint css:lint lint:commit", |
44 | 46 | "lint:commit": "yarn commitlint --from $(git describe --always --first-parent) --verbose", |
45 | 47 | "lint:commit:last": "yarn commitlint --from HEAD~1 --to HEAD --verbose", |
|
51 | 53 | "format": "yarn format:check", |
52 | 54 | "format:check": "prettier --check 'src/**/*.{js,jsx,ts,tsx,scss}' 'scripts/*'", |
53 | 55 | "format:fix": "prettier --write 'src/**/*.{js,jsx,ts,tsx,scss}' 'scripts/*'", |
54 | | - "test": "npm-run-all --serial lint test:unit format", |
| 56 | + "test": "npm-run-all --serial lint test:unit format types", |
55 | 57 | "test:unit": "jest --config ./config/jest.config.json", |
56 | 58 | "test:unit:watch": "yarn test:unit --watchAll", |
57 | 59 | "prepare": "husky install", |
|
62 | 64 | "version": "yarn changelog && yarn replace-version && git status && git add CHANGELOG.md README.md package.json ./dist && git status", |
63 | 65 | "postversion": "echo 'Check and push: `git push --set-upstream origin main && git push --tags`'", |
64 | 66 | "release": "yarn version --`./bin/ci/semver.sh`", |
65 | | - "replace-version": "node scripts/readme-replace-version.js" |
| 67 | + "replace-version": "node scripts/readme-replace-version.js", |
| 68 | + "types": "tsc -p ./tsconfig.json" |
66 | 69 | }, |
67 | 70 | "dependencies": { |
68 | 71 | "@lmc-eu/spirit-design-tokens": "^0.4.5", |
|
78 | 81 | "@lmc-eu/eslint-config-base": "1.0.0", |
79 | 82 | "@lmc-eu/prettier-config": "1.2.1", |
80 | 83 | "@lmc-eu/stylelint-config": "2.0.2", |
| 84 | + "@types/jest": "^27.0.3", |
| 85 | + "@typescript-eslint/eslint-plugin": "^5.4.0", |
| 86 | + "@typescript-eslint/parser": "^5.4.0", |
81 | 87 | "autoprefixer": "10.4.0", |
82 | 88 | "babel-jest": "27.4.4", |
83 | 89 | "clean-css-cli": "5.5.0", |
|
96 | 102 | "replace-in-file": "6.3.2", |
97 | 103 | "sass": "1.45.0", |
98 | 104 | "stylelint": "13.13.1", |
99 | | - "stylelint-order": "5.0.0" |
| 105 | + "stylelint-order": "5.0.0", |
| 106 | + "ts-jest": "^27.0.7", |
| 107 | + "typescript": "^4.5.2" |
100 | 108 | } |
101 | 109 | } |
0 commit comments