Compare commits
4 Commits
v4.0.2-dev
...
v4.0.2-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 12e4e58128 | |
Derrick Hammer | 7059f28149 | |
Derrick Hammer | ab3c7bada2 | |
Derrick Hammer | edf1960010 |
|
@ -1,3 +1,10 @@
|
|||
## [4.0.2-develop.6](https://git.lumeweb.com/LumeWeb/presetter-preset-rollup/compare/v4.0.2-develop.5...v4.0.2-develop.6) (2023-06-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add build:typescript:* to build script ([edf1960](https://git.lumeweb.com/LumeWeb/presetter-preset-rollup/commit/edf1960010004a72fba3b5b6d0649721977d594e))
|
||||
|
||||
## [4.0.2-develop.5](https://git.lumeweb.com/LumeWeb/presetter-preset-rollup/compare/v4.0.2-develop.4...v4.0.2-develop.5) (2023-06-30)
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
input: '{source}/index.ts'
|
||||
input: '{source}/index.js'
|
||||
output:
|
||||
- file: '{output}/index.js'
|
||||
format: cjs
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "presetter-preset-rollup",
|
||||
"version": "4.0.2-develop.5",
|
||||
"version": "4.0.2-develop.6",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "presetter-preset-rollup",
|
||||
"version": "4.0.2-develop.5",
|
||||
"version": "4.0.2-develop.6",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"presetter-types": "^4.0.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/presetter-preset-rollup",
|
||||
"version": "4.0.2-develop.5",
|
||||
"version": "4.0.2-develop.6",
|
||||
"description": "An opinionated presetter preset for using rollup as a bundler",
|
||||
"keywords": [
|
||||
"presetter",
|
||||
|
|
|
@ -41,11 +41,13 @@ export type Variable = {
|
|||
source: string;
|
||||
/** the directory containing all the compiled files (default: lib) */
|
||||
output: string;
|
||||
buildSource: string;
|
||||
};
|
||||
|
||||
export const DEFAULT_VARIABLE: Variable = {
|
||||
source: 'source',
|
||||
source: 'build',
|
||||
output: 'lib',
|
||||
buildSource: 'buildSource',
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -71,8 +73,12 @@ export default function (): PresetAsset {
|
|||
scripts: resolve(TEMPLATES, 'scripts.yaml'),
|
||||
noSymlinks: ['rollup.config.ts'],
|
||||
supplementaryConfig: {
|
||||
gitignore: ['/rollup.config.ts'],
|
||||
rollup: resolve(CONFIGS, 'rollup.yaml'),
|
||||
'gitignore': ['/rollup.config.ts'],
|
||||
'rollup': resolve(CONFIGS, 'rollup.yaml'),
|
||||
'tsconfig.build': {
|
||||
include: ['{buildSource}'],
|
||||
outDir: ['{source}'],
|
||||
},
|
||||
},
|
||||
variable: DEFAULT_VARIABLE,
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# replace the `prepare` template from presetter-preset
|
||||
# so that the build procedure will not be triggered upon package installation
|
||||
build: cross-env NODE_ENV=production run-s clean build:rollup-config build:rollup
|
||||
build: cross-env NODE_ENV=production run-s clean build:rollup-config build:rollup build:typescript:*
|
||||
build:rollup-config: tsc -p tsconfig.config.json
|
||||
build:rollup: rollup --config rollup.config.js
|
||||
develop: cross-env NODE_ENV=development run-s "build:rollup -- --watch {@}" --
|
||||
|
|
Loading…
Reference in New Issue