Compare commits

..

4 Commits

6 changed files with 39 additions and 26 deletions

View File

@ -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)

View File

@ -1,4 +1,4 @@
input: '{source}/index.ts'
input: '{source}/index.js'
output:
- file: '{output}/index.js'
format: cjs

4
npm-shrinkwrap.json generated
View File

@ -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",

View File

@ -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",

View File

@ -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,
};

View File

@ -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 {@}" --