Skip to content

Commit

Permalink
preserve shebang for executables (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum authored Feb 23, 2023
1 parent 2122263 commit b7c771f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 37 deletions.
55 changes: 24 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@maplibre/maplibre-gl-style-spec",
"description": "a specification for maplibre gl styles",
"version": "18.0.1-pre.14",
"version": "18.0.1-pre.15",
"author": "MapLibre",
"keywords": [
"mapbox",
Expand Down Expand Up @@ -76,7 +76,7 @@
"jest-canvas-mock": "^2.4.0",
"jest-environment-jsdom": "^29.3.1",
"rollup": "^3.15.0",
"rollup-plugin-executable": "^1.6.3",
"rollup-plugin-preserve-shebang": "^1.0.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"semver": "^7.3.8",
"ts-jest": "^29.0.5",
Expand Down
8 changes: 4 additions & 4 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import resolve from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
import json from '@rollup/plugin-json';
import minifyStyleSpec from './build/rollup_plugin_minify_style_spec';
import executable from 'rollup-plugin-executable';
import shebang from 'rollup-plugin-preserve-shebang';

const rollupPlugins = [
minifyStyleSpec(),
Expand Down Expand Up @@ -63,7 +63,7 @@ const config: RollupOptions[] = [{
format: 'umd',
sourcemap: true
}],
plugins: [...rollupPlugins, executable()]
plugins: [...rollupPlugins, shebang()]
},
{
input: './bin/gl-style-migrate.ts',
Expand All @@ -78,7 +78,7 @@ const config: RollupOptions[] = [{
format: 'umd',
sourcemap: true
}],
plugins: [...rollupPlugins, executable()]
plugins: [...rollupPlugins, shebang()]
},
{
input: './bin/gl-style-validate.ts',
Expand All @@ -93,6 +93,6 @@ const config: RollupOptions[] = [{
format: 'umd',
sourcemap: true
}],
plugins: [...rollupPlugins, executable()]
plugins: [...rollupPlugins, shebang()]
}];
export default config;

0 comments on commit b7c771f

Please sign in to comment.