@stencil/angular-output-target 0.9.0 → 0.9.1

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.
@@ -149,8 +149,8 @@ export const createComponentTypeDefinition = (outputType, tagNameAsPascal, event
149
149
  const eventTypes = publicEvents.map((event) => {
150
150
  const comment = createDocComment(event.docs);
151
151
  let eventName = event.name;
152
- if (event.name.includes('-')) {
153
- // If an event name includes a dash, we need to wrap it in quotes.
152
+ if (/[-/]/.test(event.name)) {
153
+ // If an event name includes a dash or a forward slash, we need to wrap it in quotes.
154
154
  // https://github.com/ionic-team/stencil-ds-output-targets/issues/212
155
155
  eventName = `'${event.name}'`;
156
156
  }
@@ -48,6 +48,7 @@ function copyResources(config, resourcesFilesToCopy, directory) {
48
48
  dest: path.join(directory, rf),
49
49
  keepDirStructure: false,
50
50
  warn: false,
51
+ ignore: [],
51
52
  };
52
53
  });
53
54
  return config.sys.copy(copyTasks, path.join(directory));
package/dist/index.cjs.js CHANGED
@@ -294,8 +294,8 @@ const createComponentTypeDefinition = (outputType, tagNameAsPascal, events, comp
294
294
  const eventTypes = publicEvents.map((event) => {
295
295
  const comment = createDocComment(event.docs);
296
296
  let eventName = event.name;
297
- if (event.name.includes('-')) {
298
- // If an event name includes a dash, we need to wrap it in quotes.
297
+ if (/[-/]/.test(event.name)) {
298
+ // If an event name includes a dash or a forward slash, we need to wrap it in quotes.
299
299
  // https://github.com/ionic-team/stencil-ds-output-targets/issues/212
300
300
  eventName = `'${event.name}'`;
301
301
  }
@@ -379,6 +379,7 @@ function copyResources$1(config, resourcesFilesToCopy, directory) {
379
379
  dest: path__default["default"].join(directory, rf),
380
380
  keepDirStructure: false,
381
381
  warn: false,
382
+ ignore: [],
382
383
  };
383
384
  });
384
385
  return config.sys.copy(copyTasks, path__default["default"].join(directory));
@@ -433,6 +434,7 @@ async function copyResources(config, outputTarget) {
433
434
  dest: destDirectory,
434
435
  keepDirStructure: false,
435
436
  warn: false,
437
+ ignore: [],
436
438
  },
437
439
  ], srcDirectory);
438
440
  }
package/dist/index.js CHANGED
@@ -286,8 +286,8 @@ const createComponentTypeDefinition = (outputType, tagNameAsPascal, events, comp
286
286
  const eventTypes = publicEvents.map((event) => {
287
287
  const comment = createDocComment(event.docs);
288
288
  let eventName = event.name;
289
- if (event.name.includes('-')) {
290
- // If an event name includes a dash, we need to wrap it in quotes.
289
+ if (/[-/]/.test(event.name)) {
290
+ // If an event name includes a dash or a forward slash, we need to wrap it in quotes.
291
291
  // https://github.com/ionic-team/stencil-ds-output-targets/issues/212
292
292
  eventName = `'${event.name}'`;
293
293
  }
@@ -371,6 +371,7 @@ function copyResources$1(config, resourcesFilesToCopy, directory) {
371
371
  dest: path.join(directory, rf),
372
372
  keepDirStructure: false,
373
373
  warn: false,
374
+ ignore: [],
374
375
  };
375
376
  });
376
377
  return config.sys.copy(copyTasks, path.join(directory));
@@ -425,6 +426,7 @@ async function copyResources(config, outputTarget) {
425
426
  dest: destDirectory,
426
427
  keepDirStructure: false,
427
428
  warn: false,
429
+ ignore: [],
428
430
  },
429
431
  ], srcDirectory);
430
432
  }
@@ -31,6 +31,7 @@ async function copyResources(config, outputTarget) {
31
31
  dest: destDirectory,
32
32
  keepDirStructure: false,
33
33
  warn: false,
34
+ ignore: [],
34
35
  },
35
36
  ], srcDirectory);
36
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/angular-output-target",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Angular output target for @stencil/core components.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -17,6 +17,9 @@
17
17
  "prepublishOnly": "pnpm run build",
18
18
  "prebuild": "rimraf ./dist && pnpm run test",
19
19
  "build": "tsc && pnpm run rollup",
20
+ "dev": "run-p dev:*",
21
+ "dev:build": "tsc --watch --preserveWatchOutput",
22
+ "dev:rollup": "rollup -c --watch --preserveWatchOutput",
20
23
  "watch": "tsc --watch",
21
24
  "rollup": "rollup -c",
22
25
  "version": "pnpm run build",
@@ -43,6 +46,7 @@
43
46
  "@types/node": "^18.0.0",
44
47
  "jest": "^27.0.0",
45
48
  "jest-environment-jsdom": "^27.0.0",
49
+ "npm-run-all2": "^6.2.4",
46
50
  "rimraf": "^5.0.0",
47
51
  "rollup": "^2.23.1",
48
52
  "typescript": "~5.0.4"