Skip to content

Commit

Permalink
Remove legacy-types from all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
spautz committed Nov 27, 2024
1 parent 3984610 commit 3c6d804
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 52 deletions.
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const buildOutputs = [
'build',
'coverage',
'dist',
'legacy-types',
'node_modules',
'storybook-static',
];
Expand Down
28 changes: 3 additions & 25 deletions packages/node-library-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"files": [
"dist/",
"docs/",
"legacy-types/",
"src/",
"LICENSE",
"*.md"
Expand Down Expand Up @@ -55,7 +54,7 @@
"____ STANDARD PACKAGE TASKS ________________________________________": "",
"all": "turbo run pipeline-all",
"all:ci": "turbo run pipeline-ci",
"build": "pnpm run build:clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:verify && pnpm run build:legacytypes",
"build": "pnpm run build:clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:verify",
"clean": "pnpm run build:clean && pnpm run test:clean && rimraf --glob ./node_modules/.cache ./.turbo ./*.log",
"dev": "pnpm run build:esm:watch",
"lint": "eslint . --max-warnings 0",
Expand All @@ -68,15 +67,11 @@
"test:watch": "pnpm run test:clean && vitest watch --coverage",
"typecheck": "tsc -p ./tsconfig.json --noEmit",
"____ BUILD TASKS ___________________________________________________": "",
"build:clean": "rimraf --glob ./dist ./legacy-types ./*.tgz",
"build:clean": "rimraf --glob ./dist ./*.tgz",
"build:cjs": "tsup src/index.ts --format cjs --dts --outDir=./dist/cjs/ --tsconfig=./tsconfig.build-cjs.json",
"build:cjs:watch": "pnpm run build:cjs --watch",
"build:esm": "tsc -p tsconfig.build-esm.json",
"build:esm:watch": "pnpm run build:esm --watch",
"build:legacytypes": "pnpm run build:legacytypes:3.5 && pnpm run build:legacytypes:4.0 && pnpm run build:legacytypes:4.5",
"build:legacytypes:3.5": "downlevel-dts ./dist ./legacy-types/ts3.5/dist --to=3.5",
"build:legacytypes:4.0": "downlevel-dts ./dist ./legacy-types/ts4.0/dist --to=4.0",
"build:legacytypes:4.5": "downlevel-dts ./dist ./legacy-types/ts4.5/dist --to=4.5",
"build:verify": "publint --strict && size-limit",
"build:verifypack": "ls *.tgz | xargs -I {} attw {} --exclude-entrypoints internal-raw-src"
},
Expand All @@ -94,22 +89,5 @@
"import": "{ helloWorld }",
"limit": "50 B"
}
],
"typesVersions": {
"<4.0": {
"*": [
"./legacy-types/ts3.5/*"
]
},
"<4.5": {
"*": [
"./legacy-types/ts4.0/*"
]
},
"<4.7": {
"*": [
"./legacy-types/ts4.5/*"
]
}
}
]
}
28 changes: 3 additions & 25 deletions packages/react-library-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"files": [
"dist/",
"docs/",
"legacy-types/",
"src/",
"LICENSE",
"*.md"
Expand Down Expand Up @@ -55,7 +54,7 @@
"____ STANDARD PACKAGE TASKS ________________________________________": "",
"all": "turbo run pipeline-all",
"all:ci": "turbo run pipeline-ci",
"build": "pnpm run build:clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:verify && pnpm run build:legacytypes",
"build": "pnpm run build:clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:verify",
"clean": "pnpm run build:clean && pnpm run test:clean && rimraf --glob ./node_modules/.cache ./.turbo ./*.log",
"dev": "pnpm run build:esm:watch",
"lint": "eslint . --max-warnings 0",
Expand All @@ -68,15 +67,11 @@
"test:watch": "pnpm run test:clean && vitest watch --coverage",
"typecheck": "tsc -p ./tsconfig.json --noEmit",
"____ BUILD STEPS ___________________________________________________": "",
"build:clean": "rimraf --glob ./dist ./legacy-types ./*.tgz",
"build:clean": "rimraf --glob ./dist ./*.tgz",
"build:cjs": "tsup src/index.ts --format cjs --dts --outDir=./dist/cjs/ --tsconfig=./tsconfig.build-cjs.json",
"build:cjs:watch": "pnpm run build:cjs --watch",
"build:esm": "tsc -p tsconfig.build-esm.json",
"build:esm:watch": "pnpm run build:esm --watch",
"build:legacytypes": "pnpm run build:legacytypes:3.5 && pnpm run build:legacytypes:4.0 && pnpm run build:legacytypes:4.5",
"build:legacytypes:3.5": "downlevel-dts ./dist ./legacy-types/ts3.5/dist --to=3.5",
"build:legacytypes:4.0": "downlevel-dts ./dist ./legacy-types/ts4.0/dist --to=4.0",
"build:legacytypes:4.5": "downlevel-dts ./dist ./legacy-types/ts4.5/dist --to=4.5",
"build:verify": "publint --strict && size-limit",
"build:verifypack": "ls *.tgz | xargs -I {} attw {} --exclude-entrypoints internal-raw-src"
},
Expand All @@ -98,22 +93,5 @@
"import": "{ TodoComponent }",
"limit": "300 B"
}
],
"typesVersions": {
"<4.0": {
"*": [
"./legacy-types/ts3.5/*"
]
},
"<4.5": {
"*": [
"./legacy-types/ts4.0/*"
]
},
"<4.7": {
"*": [
"./legacy-types/ts4.5/*"
]
}
}
]
}
1 change: 0 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { configDefaults, defineConfig } from 'vitest/config';
const testPathsToExclude = [
...configDefaults.exclude,
'**/coverage/**',
'**/legacy-types/**',
'**/setupTests.ts',
'docs-website/**',
// Each external-test has its own test config, following the conventions of its framework, so they're not included
Expand Down

0 comments on commit 3c6d804

Please sign in to comment.