@vertexvis/rollup-plugin-vertexvis-copyright 0.4.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
- const year = new Date(Date.now()).getFullYear();
1
+ const year = new Date(Date.now()).getFullYear();
2
2
  const copyrightText = `Copyright (c) ${year} Vertex Software LLC. All rights reserved.`;
3
3
 
4
- function copyright(copyright = copyrightText) {
5
- return {
6
- name: 'vertex-copyright',
7
- renderChunk: (code) => {
8
- const lines = copyright.split('\n').map((line) => ` * ${line}`);
9
- return `/**!\n${lines.join('\n')}\n */\n${code}`;
10
- },
11
- };
4
+ function copyright(copyright = copyrightText) {
5
+ return {
6
+ name: 'vertex-copyright',
7
+ renderChunk: (code) => {
8
+ const lines = copyright.split('\n').map((line) => ` * ${line}`);
9
+ return `/**!\n${lines.join('\n')}\n */\n${code}`;
10
+ },
11
+ };
12
12
  }
13
13
 
14
14
  export { copyright, copyrightText };
15
- //# sourceMappingURL=bundle.esm.js.map
15
+ //# sourceMappingURL=bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.js","sources":["../src/copyright.ts","../src/plugin.ts"],"sourcesContent":["const year = new Date(Date.now()).getFullYear();\n\nexport const copyrightText = `Copyright (c) ${year} Vertex Software LLC. All rights reserved.`;\n","import { Plugin } from 'rollup';\n\nimport { copyrightText } from './copyright.js';\n\nexport function copyright(copyright: string = copyrightText): Plugin {\n return {\n name: 'vertex-copyright',\n renderChunk: (code) => {\n const lines = copyright.split('\\n').map((line) => ` * ${line}`);\n return `/**!\\n${lines.join('\\n')}\\n */\\n${code}`;\n },\n };\n}\n"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,WAAW,EAAE;AAExC,MAAM,aAAa,GAAG,CAAA,cAAA,EAAiB,IAAI;;ACE5C,SAAU,SAAS,CAAC,SAAA,GAAoB,aAAa,EAAA;IACzD,OAAO;AACL,QAAA,IAAI,EAAE,kBAAkB;AACxB,QAAA,WAAW,EAAE,CAAC,IAAI,KAAI;YACpB,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,MAAM,IAAI,CAAA,CAAE,CAAC;YAC/D,OAAO,CAAA,MAAA,EAAS,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,OAAA,EAAU,IAAI,CAAA,CAAE;QAClD,CAAC;KACF;AACH;;;;"}
@@ -1 +1 @@
1
- export declare const copyrightText: string;
1
+ export declare const copyrightText: string;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './copyright';
2
- export * from './plugin';
1
+ export * from './copyright.js';
2
+ export * from './plugin.js';
package/dist/plugin.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Plugin } from 'rollup';
2
- export declare function copyright(copyright?: string): Plugin;
1
+ import { Plugin } from 'rollup';
2
+ export declare function copyright(copyright?: string): Plugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertexvis/rollup-plugin-vertexvis-copyright",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "Rollup plugin that prepends a Vertex copyright to JS bundles.",
5
5
  "license": "MIT",
6
6
  "author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
@@ -12,9 +12,15 @@
12
12
  "bugs": {
13
13
  "url": "https://github.com/Vertexvis/vertex-web-tools/issues"
14
14
  },
15
- "main": "./dist/bundle.cjs.js",
16
- "module": "./dist/bundle.esm.js",
17
- "typings": "./dist/index.d.ts",
15
+ "type": "module",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/bundle.esm.js"
21
+ },
22
+ "./package.json": "./package.json"
23
+ },
18
24
  "publishConfig": {
19
25
  "registry": "https://registry.npmjs.org/",
20
26
  "access": "public"
@@ -28,19 +34,20 @@
28
34
  "scripts": {
29
35
  "clean": "rm -fr ./dist && mkdir ./dist",
30
36
  "format": "yarn lint --fix",
31
- "lint": "eslint --ext .ts,.tsx,.js,.jsx --ignore-path ../../.gitignore .",
37
+ "lint": "eslint .",
32
38
  "prebuild": "yarn clean",
33
39
  "build": "./scripts/build-web.sh",
34
40
  "test": "echo 'No unit tests defined'",
35
41
  "test:coverage": "echo 'No unit tests defined'"
36
42
  },
37
- "dependencies": {
38
- "rollup": "^2.63.0"
39
- },
40
43
  "devDependencies": {
41
- "@vertexvis/eslint-config-vertexvis-typescript": "0.5.1",
42
- "@vertexvis/typescript-config-vertexvis": "1.1.0",
43
- "rollup-plugin-terser": "^7.0.2",
44
- "rollup-plugin-typescript2": "^0.32.1"
44
+ "@vertexvis/eslint-config-vertexvis-typescript": "0.6.0",
45
+ "@vertexvis/typescript-config-vertexvis": "1.3.0",
46
+ "rollup": "^4.62.2",
47
+ "rollup-plugin-typescript2": "^0.37.0",
48
+ "typescript": "^5.2.0"
49
+ },
50
+ "peerDependencies": {
51
+ "rollup": "^4"
45
52
  }
46
53
  }
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const year = new Date(Date.now()).getFullYear();
6
- const copyrightText = `Copyright (c) ${year} Vertex Software LLC. All rights reserved.`;
7
-
8
- function copyright(copyright = copyrightText) {
9
- return {
10
- name: 'vertex-copyright',
11
- renderChunk: (code) => {
12
- const lines = copyright.split('\n').map((line) => ` * ${line}`);
13
- return `/**!\n${lines.join('\n')}\n */\n${code}`;
14
- },
15
- };
16
- }
17
-
18
- exports.copyright = copyright;
19
- exports.copyrightText = copyrightText;
20
- //# sourceMappingURL=bundle.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bundle.cjs.js","sources":["../src/copyright.ts","../src/plugin.ts"],"sourcesContent":["const year = new Date(Date.now()).getFullYear();\n\nexport const copyrightText = `Copyright (c) ${year} Vertex Software LLC. All rights reserved.`;\n","import { Plugin } from 'rollup';\n\nimport { copyrightText } from './copyright';\n\nexport function copyright(copyright: string = copyrightText): Plugin {\n return {\n name: 'vertex-copyright',\n renderChunk: (code) => {\n const lines = copyright.split('\\n').map((line) => ` * ${line}`);\n return `/**!\\n${lines.join('\\n')}\\n */\\n${code}`;\n },\n };\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;MAEnC,aAAa,GAAG,iBAAiB,IAAI;;SCElC,SAAS,CAAC,YAAoB,aAAa;IACzD,OAAO;QACL,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,CAAC,IAAI;YAChB,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,MAAM,IAAI,EAAE,CAAC,CAAC;YAChE,OAAO,SAAS,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC;SAClD;KACF,CAAC;AACJ;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"bundle.esm.js","sources":["../src/copyright.ts","../src/plugin.ts"],"sourcesContent":["const year = new Date(Date.now()).getFullYear();\n\nexport const copyrightText = `Copyright (c) ${year} Vertex Software LLC. All rights reserved.`;\n","import { Plugin } from 'rollup';\n\nimport { copyrightText } from './copyright';\n\nexport function copyright(copyright: string = copyrightText): Plugin {\n return {\n name: 'vertex-copyright',\n renderChunk: (code) => {\n const lines = copyright.split('\\n').map((line) => ` * ${line}`);\n return `/**!\\n${lines.join('\\n')}\\n */\\n${code}`;\n },\n };\n}\n"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;MAEnC,aAAa,GAAG,iBAAiB,IAAI;;SCElC,SAAS,CAAC,YAAoB,aAAa;IACzD,OAAO;QACL,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,CAAC,IAAI;YAChB,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,MAAM,IAAI,EAAE,CAAC,CAAC;YAChE,OAAO,SAAS,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC;SAClD;KACF,CAAC;AACJ;;;;"}