chore: rename script commands

This commit is contained in:
mathuo 2023-07-13 20:20:37 +01:00
parent a084c8b5b0
commit c4e2d1c645
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
4 changed files with 12 additions and 12 deletions

View File

@ -14,12 +14,12 @@
},
"homepage": "https://github.com/mathuo/dockview",
"scripts": {
"build:ci": "npm run build:cjs && npm run build:esm && npm run build:css",
"build:package": "npm run build:cjs && npm run build:esm && npm run build:css",
"build:cjs": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.json --extendedDiagnostics",
"build:css": "gulp sass",
"build:esm": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.esm.json --extendedDiagnostics",
"build:modulefiles": "rollup -c",
"build": "npm run build:ci && npm run build:modulefiles",
"build:bundles": "rollup -c",
"build": "npm run build:package && npm run build:bundles",
"clean": "rimraf dist/ .build/ .rollup.cache/",
"prepublishOnly": "npm run rebuild && npm run test",
"docs": "typedoc",
@ -65,4 +65,4 @@
"rollup-plugin-postcss": "^4.0.2",
"typedoc": "^0.23.25"
}
}
}

View File

@ -46,6 +46,7 @@ function createBundle(format, options) {
const output = {
file,
format,
sourcemap: true,
globals: {},
banner: [
`/**`,
@ -57,13 +58,9 @@ function createBundle(format, options) {
].join('\n'),
};
const plugins = [
typescript({
tsconfig: 'tsconfig.esm.json',
compilerOptions: {
declaration: false,
},
}),
];

View File

@ -14,12 +14,12 @@
},
"homepage": "https://github.com/mathuo/dockview",
"scripts": {
"build:ci": "npm run build:cjs && npm run build:esm && npm run build:css",
"build:package": "npm run build:cjs && npm run build:esm && npm run build:css",
"build:cjs": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.json --extendedDiagnostics",
"build:css": "gulp sass",
"build:esm": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.esm.json --extendedDiagnostics",
"build:modulefiles": "rollup -c",
"build": "npm run build:ci && npm run build:modulefiles",
"build:bundles": "rollup -c",
"build": "npm run build:package && npm run build:bundles",
"clean": "rimraf dist/ .build/ .rollup.cache/",
"docs": "typedoc",
"prepublishOnly": "npm run rebuild && npm run test",
@ -73,4 +73,4 @@
"rollup": "^3.15.0",
"rollup-plugin-postcss": "^4.0.2"
}
}
}

View File

@ -47,6 +47,7 @@ function createBundle(format, options) {
const output = {
file,
format,
sourcemap: true,
globals: {},
banner: [
`/**`,
@ -64,8 +65,10 @@ function createBundle(format, options) {
}),
typescript({
tsconfig: 'tsconfig.esm.json',
sourcemap: true,
compilerOptions: {
declaration: false,
sourcemap: true,
},
}),
];