Update `typings` to `types` in clean NPM scripts (#16965)
- Our convention now is to use `types`. - Some packages output type definition files into `types` directory but the `clean` scripts still use `typings`.
This commit is contained in:
Родитель
fc836e5d1d
Коммит
799bdea380
|
@ -32,7 +32,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-esm test-dist typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-esm test-dist types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
"build": "tsc -p .",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-esm test-dist typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-esm test-dist types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"build:test": "tsc -p . && rollup -c rollup.config.js 2>&1",
|
||||
"build": "npm run extract-api && tsc -p . && rollup -c 2>&1",
|
||||
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"execute:samples": "echo skipped",
|
||||
"extract-api": "tsc -p . && api-extractor run --local",
|
||||
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"",
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"build:test": "tsc -p . && rollup -c rollup.config.js 2>&1",
|
||||
"build": "npm run extract-api && tsc -p . && rollup -c 2>&1",
|
||||
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"execute:samples": "echo skipped",
|
||||
"extract-api": "tsc -p . && api-extractor run --local",
|
||||
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples-dev/**/*.ts\"",
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
"build:test": "tsc -p . && rollup -c 2>&1",
|
||||
"build": "npm run extract-api && tsc -p . && rollup -c 2>&1",
|
||||
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples/**/*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"execute:samples": "echo skipped",
|
||||
"extract-api": "tsc -p . && api-extractor run --local",
|
||||
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\" \"samples/**/*.{js,json}\"",
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
"build:test": "tsc -p . && rollup -c rollup.test.config.js 2>&1",
|
||||
"build": "tsc -p . && npm run build:nodebrowser && api-extractor run --local",
|
||||
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist-esm dist-test typings *.tgz *.log samples/typescript/dist",
|
||||
"clean": "rimraf dist-esm dist-test types *.tgz *.log samples/typescript/dist",
|
||||
"execute:samples": "dev-tool samples run samples-dev",
|
||||
"extract-api": "tsc -p . && api-extractor run --local",
|
||||
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-esm test-dist typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-esm test-dist types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"main": "dist-esm/src/index.js",
|
||||
"module": "dist-esm/src/index.js",
|
||||
"browser": {},
|
||||
"types": "./typings/src/index.d.ts",
|
||||
"types": "./types/src/index.d.ts",
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
},
|
||||
|
@ -15,7 +15,7 @@
|
|||
"build": "tsc -p .",
|
||||
"build:test": "echo not needed",
|
||||
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"extract-api": "echo skipped",
|
||||
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.package",
|
||||
"compilerOptions": {
|
||||
"declarationDir": "./typings",
|
||||
"declarationDir": "./types",
|
||||
"outDir": "./dist-esm",
|
||||
"module": "commonjs",
|
||||
"lib": ["dom", "es5", "es6", "es7", "esnext"]
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"./dist-esm/src/createRecorder.js": "./dist-esm/src/createRecorder.browser.js",
|
||||
"./dist-esm/src/utils/recordings.js": "./dist-esm/src/utils/recordings.browser.js"
|
||||
},
|
||||
"types": "./typings/src/index.d.ts",
|
||||
"types": "./types/src/index.d.ts",
|
||||
"scripts": {
|
||||
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
|
||||
"build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
|
||||
|
@ -19,7 +19,7 @@
|
|||
"build:test": "tsc -p . && rollup -c 2>&1",
|
||||
"build": "tsc -p . && rollup -c 2>&1",
|
||||
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"extract-api": "echo skipped",
|
||||
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "karma start --single-run",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.package",
|
||||
"compilerOptions": {
|
||||
"declarationDir": "./typings",
|
||||
"declarationDir": "./types",
|
||||
"target": "es2017",
|
||||
"outDir": "./dist-esm",
|
||||
"lib": ["dom", "es5", "es6", "es7", "esnext"]
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
"build:samples": "echo Skipped.",
|
||||
"build:test": "echo not needed",
|
||||
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "node dist-esm/test/index.spec.js",
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
"build:samples": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* typings *.tgz *.log",
|
||||
"clean": "rimraf dist dist-* types *.tgz *.log",
|
||||
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
|
|
Загрузка…
Ссылка в новой задаче