@goldstack/utils-package-create 0.3.14 → 0.3.18

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilsPackageCreate.d.ts","sourceRoot":"","sources":["../../src/utilsPackageCreate.ts"],"names":[],"mappings":"AAKA,UAAU,mBAAmB;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAiBD,eAAO,MAAM,aAAa,WAChB,mBAAmB,KAC1B,QAAQ,IAAI,CAOd,CAAC"}
@@ -7,15 +7,10 @@ exports.createPackage = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const utils_template_1 = require("@goldstack/utils-template");
9
9
  const utils_sh_1 = require("@goldstack/utils-sh");
10
- const utils_log_1 = require("@goldstack/utils-log");
11
10
  const copyFromLocal = async (params, path) => {
12
11
  const templateConfig = (0, utils_template_1.readTemplateConfigFromFile)(path + '/template.json');
13
12
  const installFolder = params.installFolder;
14
- const res = utils_sh_1.sh.cp('-r', path + '/template', './' + installFolder + '/' + params.newPackageName);
15
- if (!res) {
16
- (0, utils_log_1.fatal)('Cannot copy template to folder');
17
- throw new Error('Cannot copy template');
18
- }
13
+ (0, utils_sh_1.cp)('-r', path + '/template', './' + installFolder + '/' + params.newPackageName);
19
14
  };
20
15
  const createPackage = async (params) => {
21
16
  const localPath = `./templates/${params.templateName}/${params.templateVersion}`;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilsPackageCreate.js","sourceRoot":"","sources":["../../src/utilsPackageCreate.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,8DAAuE;AACvE,kDAAyC;AAUzC,MAAM,aAAa,GAAG,KAAK,EACzB,MAA2B,EAC3B,IAAY,EACG,EAAE;IACjB,MAAM,cAAc,GAAG,IAAA,2CAA0B,EAAC,IAAI,GAAG,gBAAgB,CAAC,CAAC;IAE3E,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;IAE3C,IAAA,aAAE,EACA,IAAI,EACJ,IAAI,GAAG,WAAW,EAClB,IAAI,GAAG,aAAa,GAAG,GAAG,GAAG,MAAM,CAAC,cAAc,CACnD,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,aAAa,GAAG,KAAK,EAChC,MAA2B,EACZ,EAAE;IACjB,MAAM,SAAS,GAAG,eAAe,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC,eAAe,EAAE,CAAC;IACjF,IAAI,YAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;QAC5B,MAAM,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;KACxC;SAAM;QACL,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;KAClD;AACH,CAAC,CAAC;AATW,QAAA,aAAa,iBASxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goldstack/utils-package-create",
3
- "version": "0.3.14",
3
+ "version": "0.3.18",
4
4
  "description": "Utilities for creating new Goldstack packages.",
5
5
  "keywords": [
6
6
  "goldstack",
@@ -18,32 +18,35 @@
18
18
  "license": "MIT",
19
19
  "author": "Max Rohde",
20
20
  "sideEffects": false,
21
- "main": "dist/utilsPackageCreate.js",
21
+ "main": "dist/src/utilsPackageCreate.js",
22
22
  "scripts": {
23
23
  "build": "yarn clean && yarn compile",
24
- "build:watch": "yarn clean && yarn compile:watch",
24
+ "build:watch": "yarn clean && yarn compile-watch",
25
25
  "clean": "rm -rf ./dist",
26
26
  "compile": "tsc -p tsconfig.json",
27
- "compile:watch": "tsc -p tsconfig.json --watch",
28
- "compile:watch:light": "nodemon --watch ./src/ -e '*' --exec 'yarn compile'",
27
+ "compile-watch": "tsc -p tsconfig.json --watch",
28
+ "compile-watch:light": "nodemon --watch ./src/ -e '*' --exec 'yarn compile'",
29
29
  "coverage": "jest --collect-coverage --passWithNoTests --config=./jest.config.js",
30
30
  "prepublishOnly": "yarn run build",
31
31
  "publish": "utils-git changed --exec \"yarn npm publish $@\"",
32
- "test:ci": "jest --passWithNoTests --config=./jest.config.js",
32
+ "test-ci": "jest --passWithNoTests --config=./jest.config.js",
33
33
  "version:apply": "utils-git changed --exec \"yarn version $@ && yarn version apply\"",
34
34
  "version:apply:force": "yarn version $@ && yarn version apply"
35
35
  },
36
36
  "dependencies": {
37
- "@goldstack/utils-log": "0.2.6",
38
- "@goldstack/utils-sh": "0.4.13",
39
- "@goldstack/utils-template": "0.3.14"
37
+ "@goldstack/utils-log": "0.2.8",
38
+ "@goldstack/utils-sh": "0.4.17",
39
+ "@goldstack/utils-template": "0.3.18"
40
40
  },
41
41
  "devDependencies": {
42
- "@goldstack/utils-git": "0.1.26",
43
- "@types/jest": "^26.0.21",
44
- "@types/node": "^14.0.6",
42
+ "@goldstack/utils-git": "0.1.28",
43
+ "@types/jest": "^27.0.2",
44
+ "@types/node": "^16.11.0",
45
45
  "jest": "^26.6.3",
46
46
  "ts-jest": "^26.5.4",
47
47
  "typescript": "^4.4.3"
48
+ },
49
+ "publishConfig": {
50
+ "main": "dist/src/utilsPackageCreate.js"
48
51
  }
49
52
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"utilsPackageCreate.d.ts","sourceRoot":"","sources":["../src/utilsPackageCreate.ts"],"names":[],"mappings":"AAKA,UAAU,mBAAmB;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAqBD,eAAO,MAAM,aAAa,WAChB,mBAAmB,KAC1B,QAAQ,IAAI,CAOd,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utilsPackageCreate.js","sourceRoot":"","sources":["../src/utilsPackageCreate.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;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