Skip to content

Commit

Permalink
chore: adjust types path and add source map false in tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
matheushdsbr committed Jul 13, 2023
1 parent 046b292 commit 0bdaff2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage": "https://github.com/Gympass/yoga",
"license": "MIT",
"main": "src/index.ts",
"types": "dist/typings/index.d.ts",
"types": "src/index.ts",
"scripts": {
"build": "yarn build:types && yarn build:cjs && yarn build:esm",
"build:types": "tsup --outDir dist/typings --dts-only",
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"homepage": "https://github.com/Gympass/yoga",
"license": "MIT",
"main": "src/index.ts",
"types": "dist/typings/index.d.ts",
"types": "src/index.ts",
"scripts": {
"build": "yarn build:types && yarn build:cjs && yarn build:esm",
"build:types": "tsup --outDir dist/typings --dts-only",
Expand Down
3 changes: 2 additions & 1 deletion scripts/prepublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ const copyFile = file => {
};

const createPackageJson = () => {
const { scripts, ...packageDataOther } = pkg;
const { scripts, tsup, ...packageDataOther } = pkg;

const newPackageData = {
...packageDataOther,
main: './cjs/index.js',
module: './esm/index.js',
types: './typings/index.d.ts',
private: false,
exports: {
'.': {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"noImplicitOverride": true,
"noImplicitReturns": true,
"skipLibCheck": true,
"moduleResolution": "node"
"moduleResolution": "node",
"sourceMap": false
}
}

0 comments on commit 0bdaff2

Please sign in to comment.