Skip to content

Commit

Permalink
fix(@vtmn/css-tailwind-preset): add types (#1218)
Browse files Browse the repository at this point in the history
Co-authored-by: Laurent Thiebault <laurent.thiebault@decathlon.com>
  • Loading branch information
astahmer and lauthieb committed Jul 26, 2022
1 parent bcdb6f8 commit 1605e93
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 6 deletions.
15 changes: 12 additions & 3 deletions packages/sources/css/presets/tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@
"url": "git+https://github.com/Decathlon/vitamin-web.git"
},
"license": "Apache-2.0",
"main": "./index.js",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc"
},
"files": [
"index.js",
"theme.js"
"src",
"dist",
"package.json",
"tsconfig.json"
],
"devDependencies": {
"typescript": "^4.7.4"
},
"dependencies": {
"@vtmn/css": "^0.84.1",
"@vtmn/css-design-tokens": "^0.20.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const theme = require('./theme');
import theme from './theme';

module.exports = {
export default {
prefix: 'vtmn-',
corePlugins: {
preflight:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
screens: {
mobile: { max: '599px' },
tablet: { min: '600px', max: '899px' },
Expand Down
18 changes: 18 additions & 0 deletions packages/sources/css/presets/tailwind/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "ESNext",
"declaration": true,
"allowJs": false,
"skipLibCheck": false,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"outDir": "./dist"
},
"include": ["src/**/*.ts"]
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22563,6 +22563,11 @@ typescript@^4.5.4, typescript@^4.6.4:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235"
integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==

typescript@^4.7.4:
version "4.7.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235"
integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==

uglify-js@3.4.x:
version "3.4.10"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.10.tgz#9ad9563d8eb3acdfb8d38597d2af1d815f6a755f"
Expand Down

0 comments on commit 1605e93

Please sign in to comment.